ServiceNow UI Policy Interview Questions 2025
What is UI policies?
UI policies dynamically change the behavior of information on a form.
You can use UI policies to make the fields on the form read-only, mandatory, or hide\show fields.
You can also use client scripts to perform all of these actions, but for faster load times use UI policies whenever possible.
UI policies dynamically change the behavior of information on a form.
You can use UI policies to make the fields on the form read-only, mandatory, or hide\show fields.
You can also use client scripts to perform all of these actions, but for faster load times use UI policies whenever possible.
What is the difference between UI policy and Data policy?
Data policies are similar to UI policies.
However, UI policies only apply to data entered on a form through the standard browser.On the other hand
Data Policies can apply rules to all data entered into the system, including data brought in through import sets, web services.
Data Policies execute on the server and UI policies executes on client side.
Data policies are similar to UI policies.
However, UI policies only apply to data entered on a form through the standard browser.On the other hand
Data Policies can apply rules to all data entered into the system, including data brought in through import sets, web services.
Data Policies execute on the server and UI policies executes on client side.
What is reverse if false, on Load, inherit and Global option in UI policies?
On Load : Option for specifying that the UI policy behavior should be performed OnLoad as well as when the form changes.
Inherit : Option for specifying whether extended tables inherit this UI policy.
When a child table has an inherited UI policy from it\'s parent table, the UI policy on the child table always runs first. This event is true regardless of the Order of the UI policies.
Global : Option for specifying whether the UI policy applies to all form views. If this check box is cleared, the UI policy is view-specific.
Reverse if false : Option for specifying that the UI policy action should be reversed when the conditions of it\'s UI policy evaluate to false. In other words, when the conditions are true, actions are taken and when they change back to false, the actions are reversed (undone).
On Load : Option for specifying that the UI policy behavior should be performed OnLoad as well as when the form changes.
Inherit : Option for specifying whether extended tables inherit this UI policy.
When a child table has an inherited UI policy from it\'s parent table, the UI policy on the child table always runs first. This event is true regardless of the Order of the UI policies.
Global : Option for specifying whether the UI policy applies to all form views. If this check box is cleared, the UI policy is view-specific.
Reverse if false : Option for specifying that the UI policy action should be reversed when the conditions of it\'s UI policy evaluate to false. In other words, when the conditions are true, actions are taken and when they change back to false, the actions are reversed (undone).
Which one execute first UI Policy script or UI policy action?
UI Policy action executes first then UI Policy script executes. So, if there is conflicting logic between them then UI policy script will take precedence as it executes at last.
UI Policy action executes first then UI Policy script executes. So, if there is conflicting logic between them then UI policy script will take precedence as it executes at last.
If client script is making assignment group field read only and UI policy making it editable, what will be output?
Client script executes first and then UI policy, therefore, action taken by UI policy will reflect as output i'e assignment group will be editable.
Client script executes first and then UI policy, therefore, action taken by UI policy will reflect as output i'e assignment group will be editable.
Real time work queries :
Explain one of the UI policy that you have created? Why used UI policy, why not Client script or ACL(if you are making field read only)? Was there any other way to achieve the same requirement?
Explain one of the UI policy that you have created? Why used UI policy, why not Client script or ACL(if you are making field read only)? Was there any other way to achieve the same requirement?
Assignment for you :
Explain any scenario which can be achieved by UI policy but not with client script or vice versa?
Explain any scenario which can be achieved by UI policy but not with client script or vice versa?
Prepared and confident for your interview?
Practice makes perfect! Test your skills with our virtual interview practice buddy and ensure you're fully ready for your upcoming interview.
User Added Interview Question and Answers
I have field XYZ which is mandatory already and now to make it visible false on some condition. How can to do this?
Can we control the UI Policy Run? Means to be run on Desktop, mobile or portal?
How can we run Catalog UI Policy on Catalog Item View, RITM View, Catalog Task View
Question: let's say a new employee has joined the servicenow team, and he is irritating you with the same kind of technical doubts. as an administrator/developer how would you handle this?
I was asked that UI policy actions and UI policy Script Which runs first in the UI policy?
Explain one of the UI policy that you have created? Why used UI policy, why not Client script or ACL(if you are making field read only)? Was there any other way to achieve the same requirement? My thoughts on the above question would be: If we want to perform different operation a single filed using a UI Policy it would be difficult, as UI policies do not allow more than one operation on a specific field. Say there is a scenario where if certain conditions are met, then I make the field mandatory or visible, and when they do not match I would make it non mandatory or hide using reverse if False. Now say I have another situation which is not exactly same as per my conditions on the UI policy also not completely contraditing and I would only want to make the field mandatory and no actions for visibility, I will not be able to achieve this via UI policy and would need to use a client script, since UI policies will not permit multiple conditions to run on the same field. There are no actions that can be achieved via UI Policy and not via client scripts, but we ight have to make our selections based on the requirement. UI policy are no code to low code client executions which reduces load time and easy to use, but if we have a dependency on the previous object value or involves more logic we will have to go with client scripts. The only case I can think of the reason where we cannot use an ACL and need to use a UI policy or client script is when we are applying restrictions on catalog forms.
I was asked questions when you will decide to use UI policy and data policy I told Ui policy will be used to make changes in client side form and data policy in server side. Interviewer expecting more from me. can anyone answer this Please.
what are the pre requisites to convert Ui policy to Data policy?
Is data policy change to UI policy
🚀 Power Up Your ServiceNow Career
Join a growing community of smart ServiceNow professionals to stay ahead in interviews, sharpen your development skills, and accelerate your career.
Fuel My Passion
Loving the content? Well, of course you are. Here’s your chance to indirectly fuel the chaos that keeps this website running. Your contribution helps keep the wheels turning and allows me to continue pretending to be a responsible adult—while cranking out more content for you. Thanks for supporting my delusional dreams and helping me keep this website alive!
Buy Me a Coffee
Support with UPI
If you prefer making a UPI payment to support the website maintenance cost, scan the QR code below: