what will happen if Client script and UI policy are conflicting with each other and how will it work

rohanbhatia
Tera Contributor

what will happen if Client script and UI policy are conflicting with each other and how will it work?

4 ACCEPTED SOLUTIONS

amitshishod
Tera Guru

Hello Buddy, First Client script run(it will do the changes defined) then UI Policy run(it will do the changes defined). So, UI Policy logic will be the final output.

Please mark my answer correct and helpful if it helps you.

View solution in original post

Dr Atul G- LNG
Tera Patron
Tera Patron

Ui policy will be given the final output but also it is wrong practice to keep CS and Ui policy on same field at same tine.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

Sandeep Rajput
Tera Patron
Tera Patron

@rohanbhatia Here is the execution order of various scripts in ServiceNow.

 

1681382054423.jpeg

View solution in original post

@rohanbhatia Is there anything wrong with my answer?

 

View solution in original post

4 REPLIES 4

amitshishod
Tera Guru

Hello Buddy, First Client script run(it will do the changes defined) then UI Policy run(it will do the changes defined). So, UI Policy logic will be the final output.

Please mark my answer correct and helpful if it helps you.

Dr Atul G- LNG
Tera Patron
Tera Patron

Ui policy will be given the final output but also it is wrong practice to keep CS and Ui policy on same field at same tine.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Sandeep Rajput
Tera Patron
Tera Patron

@rohanbhatia Here is the execution order of various scripts in ServiceNow.

 

1681382054423.jpeg

@rohanbhatia Is there anything wrong with my answer?