UI Policiesin ServiceNow dynamically control form field behaviorswithout scripting. They help maintaindata consistencyand improve user experience.
B. Setting fields hidden
UI Policies canhideform fields based on conditions.
Example: Hide the " Resolution Notes " field unlessState = Resolved.
D. Setting fields read-only
UI Policies canmake fields read-onlyto prevent users from modifying certain data.
Example: Set " Requested For " fieldread-onlyafter submission.
E. Setting fields mandatory
UI Policies canenforce mandatory fieldsbased on conditions.
Example: Make the " Justification " field mandatory ifPriority = High.
A. Setting fields to accept the data with ‘n’ number of characters
Field length restrictions are set in theDictionary Definition, not UI Policies.
C. Setting fields to accept the data in an expected format
Data formatting (e.g., date, phone number) is controlled byField Types and Data Policies, not UI Policies.
[References:ServiceNow Documentation:UI Policies Overview, ServiceNow Developer Guide:Creating UI Policies, , , ]