Which will run first among UI POlicy and Client Script? How to know?

Snow Guest
Tera Contributor

Lets assume a field 'xyz' which i made it mandatory through ui policy and did reverse with client script? so by reading it i came to know that UI will be ultimate and it runs first...but how to know it?

 

did any one have idea?

 

or else lets take on same field i have defined one ui policy, and two on change scripts on same field

1) making mandatory with ui policy

2) making mandatory with on change client script.

3)making not mandatory with onchange client script

 

how to know which one executed first and then what ? how to know which one instance taken granted?

1 REPLY 1

Sagar Pagar
Tera Patron

Hi @Snow Guest,

Client scripts will run first and the UI policy. You can verify it by adding alert messages.

 

Thanks,

Sagar Pagar

The world works with ServiceNow