UI Policies and UI Actionsare both part of theServiceNow user interface customizationbut serve different purposes.
Used todynamically change form field behaviorsbased on specific conditions.
Canmake fields read-only, mandatory, or hiddenwithout requiring scripts.
Runson the client-side (browser)to improve performance and responsiveness.
Example:
If theCategoryisHardware, theSerial Numberfield becomesmandatory.
Used tocreate buttons, links, and context menu actions.
Can executescriptsto perform specific actions when clicked.
Runs on theserver-side or client-sidedepending on configuration.
Example:
A"Save" buttonthat becomesvisible only to users with a specific role.
UI Policy(not UI Action) is responsible for making fieldsread-only, mandatory, or hidden.
UI Action(not UI Policy) is responsible for making aSave button visiblefor specific users.
ServiceNow Docs: UI Policy Overviewhttps://docs.servicenow.com/en-US/bundle/utah-platform-administration/page/administer/form-administration/concept/c_UIPolicies.html
ServiceNow Docs: UI Action Overviewhttps://docs.servicenow.com/en-US/bundle/utah-platform-administration/page/administer/form-administration/concept/c_UIActions.html
UI Policy:UI Action:Why Option A is Incorrect?References from Certified System Administrator (CSA) Documentation: