nerdexam
ServiceNow

CAD · Question #203

Which one of the following is true?

The correct answer is A. A UI Policy's Actions execute before the UI Policy's Scripts. In a UI Policy, Actions (declarative settings like making a field mandatory, read-only, or visible/hidden) execute before the Scripts section. This means the Actions run first and apply their field-level changes, and then the Script block executes to perform any custom…

Submitted by ravi_2018· Apr 18, 2026Application User Interface

Question

Which one of the following is true?

Options

  • AA UI Policy's Actions execute before the UI Policy's Scripts
  • BThe execution order for a UI Policy's Scripts and Actions is determined at runtime
  • CA UI Policy's Scripts execute before the UI Policy's Actions
  • DA UI Policy's Actions and Scripts execute at the same time

How the community answered

(24 responses)
  • A
    96% (23)
  • B
    4% (1)

Explanation

In a UI Policy, Actions (declarative settings like making a field mandatory, read-only, or visible/hidden) execute before the Scripts section. This means the Actions run first and apply their field-level changes, and then the Script block executes to perform any custom JavaScript logic. This execution order is fixed and predictable, not determined at runtime. Understanding this order is important when both Actions and Scripts manipulate the same fields, as the Script can override what Actions set.

Topics

#UI Policies#Client-side Scripting#Execution Order

Community Discussion

No community discussion yet for this question.

Full CAD Practice