Which among Client script and UI Policy is executed first?

sruthivarghese
Tera Contributor

Hi,

If I have a client script and UI policy serving the same purpose , which one will be executed first?

Thanks in advance

Sruthi

4 REPLIES 4

Aakash Shah4
Tera Guru

Karthik Reddy T
Kilo Sage

Client script will execute first.



A Race between UI Policy and Client script


Karthik Reddy T.
ServiceNow Commnunity MVP -2018 class.

Aakash Shah4
Tera Guru

Hi Shruthi,


Although the Order field is not on the Client Script form baseline you can customize the form to add it.


UI Policies execute after Client Scripts. If there is conflicting logic between a Client Script and a UI Policy, the UI Policy logic applies.