A developer needs to add a custom button to the incident form that executes a script when clicked. Which mechanism should be used?
Trap 1: Write a client script that adds a button dynamically.
While possible, it is not the recommended approach; UI Actions are designed for this.
Trap 2: Modify the form layout to include a button widget.
Form layout does not support adding custom buttons.
Trap 3: Configure a UI Policy.
UI Policies are for field visibility and behavior, not buttons.
- A
Write a client script that adds a button dynamically.
Why wrong: While possible, it is not the recommended approach; UI Actions are designed for this.
- B
Modify the form layout to include a button widget.
Why wrong: Form layout does not support adding custom buttons.
- C
Create a UI Action.
UI Actions are the standard way to add buttons with server-side actions.
- D
Configure a UI Policy.
Why wrong: UI Policies are for field visibility and behavior, not buttons.