A developer is asked to add a custom button to the Service Portal form for the 'incident' table. The button should trigger a client script that displays a confirmation dialog before submitting the form. Which approach should the developer use?
Trap 1: Create an Access Control Rule (ACL) on the incident table and…
ACLs control access, not UI elements.
Trap 2: Create a Business Rule on the incident table that injects a button…
Business Rules run server-side and cannot directly modify client UI.
Trap 3: Create a UI Action on the incident table with a client script and…
UI Actions are for form buttons but not ideal for conditional display based on client script logic.
- A
Create a UI Policy on the incident table with a client script that shows the button conditionally.
UI Policy can conditionally display UI elements and run client scripts.
- B
Create an Access Control Rule (ACL) on the incident table and attach a client script.
Why wrong: ACLs control access, not UI elements.
- C
Create a Business Rule on the incident table that injects a button via server-side code.
Why wrong: Business Rules run server-side and cannot directly modify client UI.
- D
Create a UI Action on the incident table with a client script and set the 'Show insert' condition.
Why wrong: UI Actions are for form buttons but not ideal for conditional display based on client script logic.