What is a no-code approach to control the mandatory or read-only state of a form field?
Correct Answer: E
A UI Policy is the preferred no-code approach in ServiceNow to dynamically control the mandatory, read-only, or visibility state of form fields based on specified conditions. Unlike Client Scripts, which require JavaScript coding, UI Policies provide an easy-to-configure, rule-based solution.
Why Use UI Policies?
They allow administrators to control form behavior without scripting.
They are faster and more efficient than Client Scripts.
They run on the client-side, meaning changes occur dynamically as users interact with the form.
How UI Policies Work:
Define conditions (e.g., "Priority is High").
Set actions (e.g., make "Due Date" mandatory, read-only, or hidden).
Apply the UI Policy to the form automatically when the condition is met.
Why Other Options Are Incorrect:
A . UI Action → UI Actions create buttons, links, or context menu items; they do not control form fields.
B . Client Script → While Client Scripts can achieve similar functionality, they require JavaScript coding, making them a low-code rather than a no-code solution.
C . UI Script → UI Scripts are reusable JavaScript libraries, not designed for controlling form fields.
D . UI Rule → No such feature exists in ServiceNow.
Reference:
ServiceNow Docs: UI Policies
ServiceNow Docs: Field Administration - Data Policies
ServiceNow CSA Official Study Materials