- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2018 02:23 AM
why client script gets executed first than UI Policy?
Solved! Go to Solution.
- Labels:
-
Field Service Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2018 06:26 AM
Hi Mallikharjuna,
That is how ServiceNow has defined it to work. Client scripts are executed first when form load because ServiceNow doesn't use any order for their execution.
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2021 09:11 PM
Hello Ankur Bawiskar,
Thank you for your answer.
I have a doubt related to this question.
For OnLoad client script and UI Policies, OnLoad client script will be executed first.
But what about OnSubmit client script? If we compare OnSubmit client script and UI policies, which will be executed first ?
With warm regards,
Rishikesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2021 09:37 PM
Hi,
onSubmit always run when form is getting submitted/saved.
UI policies run when something changes
So ideally there cannot be direct comparision
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader