CSA practice question 24 of 35

What is the difference between UI Policy and UI Action?

Full set: 500 questions
Answer options
A: UI Action can make fields read-only, mandatory, or hidden. while UI Policy can make a save button visible for appropriate users.
B: UI Policy can make fields read-only, mandatory, or hidden. while UI Action can make a save button visible for appropriate users. Correct answer
Correct Answer:
B. UI Policy can make fields read-only, mandatory, or hidden. while UI Action can make a save button visible for appropriate users.
Explanation

A UI Policy is a client-side rule that dynamically changes the behavior of information on a form. Its primary function is to set fields to be mandatory, visible, or read-only based on specified conditions, typically without requiring any scripting. Conversely, a UI Action is used to add interactive elements like buttons, links, and context menu items to forms and lists. These actions can execute code and their visibility can be controlled, for example, making a custom "Save" button visible only to users with appropriate permissions.

Why Incorrect

A. This option incorrectly reverses the primary functions of UI Policies and UI Actions. UI Actions create interactive elements, while UI Policies control form field attributes.

References

1. ServiceNow Product Documentation - UI policies: "UI policies offer an alternative to client scripts for dynamically changing information on a form. Use UI policies to set fields on a form to mandatory, visible, or read-only." (ServiceNow Platform, UI policies, Tokyo release).

2. ServiceNow Product Documentation - UI actions: "UI actions add buttons, links, and context menu items on forms and lists, making the UI more interactive, customizable, and specific to user activities." (ServiceNow Platform, UI actions, Tokyo release).

3. ServiceNow Developer Site - UI Policy: In the "Client-Side Scripting" module, it states, "UI Policies are client-side logic which governs form and field behavior... Use UI Policies to make fields hidden, visible, read-only, and/or mandatory on a form."

4. ServiceNow Developer Site - UI Actions: In the "Server-Side Scripting" module, it explains, "UI Actions are UI elements that can be shown on a form or a list... Examples of UI Actions are form buttons, form context menu items, form links, list buttons, list context menu items, and list links."

Scroll to Top