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.

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.

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).

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.

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.

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?

Assignment for you :

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.

🎯 Start Practicing

User Added Interview Question and Answers

Pooja 2025-07-22 23:15:55

I have field XYZ which is mandatory already and now to make it visible false on some condition. How can to do this?

0 Helpfuls


Pooja 2025-07-22 22:15:59

Can we control the UI Policy Run? Means to be run on Desktop, mobile or portal?


Gagandeep Singh 2025-07-28 00:32:29
Hi Pooja , We can only control the UI Policy Scripts Execution to either run on Mobile , Desktop or Portal , not the whole UI Policy
0 Helpfuls
1 Helpfuls


Pooja 2025-07-22 22:13:06

How can we run Catalog UI Policy on Catalog Item View, RITM View, Catalog Task View


Vishwadeep Singh 2025-09-17 03:36:34
In catalog UI Policy click on check box 1. Apply on Catalog item view. 2. Apply on RITM. 3. Apply on catalog Task.
0 Helpfuls
0 Helpfuls


Avinash 2024-11-19 11:37:03

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?

0 Helpfuls


Sudheer 2024-03-03 22:58:55

I was asked that UI policy actions and UI policy Script Which runs first in the UI policy?


Pradeep 2024-04-11 03:06:19
Ui Ploicy Action will run first and then UI Ploicy Script will run, if there is a conflicting logic, then UI Policy Script will take precedence anyways because it is the last one executing and I have tested it.
0 Helpfuls
0 Helpfuls


Supritha 2023-11-16 07:00:14

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.


Prajakta 2024-06-22 04:11:02
Sure, I can explain a UI policy I've created and discuss why UI policy was chosen over other methods like Client script or ACL. Example UI Policy: Making a Field Read-Only Based on User Role Requirement: In a ServiceNow application, users with the role 'IT Support' should not be able to edit the 'Assigned To' field on an incident record once it has been assigned. Implementation using UI Policy: UI Policy Definition: Create a UI policy named "Read-only Assigned To for IT Support". Condition: When the user has the 'IT Support' role AND the incident state is not 'New'. Action: Set the 'Read-only' property of the 'Assigned To' field to true. Why Use UI Policy: Simplicity: UI policies are easy to configure through the ServiceNow UI without needing scripting knowledge. User-Friendly: Changes made by UI policies are immediate and visible to users as they interact with forms. Performance: UI policies execute on the client side, reducing server load compared to ACLs which execute server-side. Why Not Client Script or ACL in This Case: Client Script: While client scripts could achieve the same functionality by setting field properties, UI policies are simpler for this straightforward requirement. ACL (Access Control List): ACLs are generally used for security and data access rules rather than field-level behaviors like making fields read-only based on conditions. Alternative Approach: Client Script: If additional logic were needed beyond field properties (e.g., showing a message or performing calculations), a client script might be more appropriate. ACL: If the requirement involved restricting access to certain records based on roles, ACLs would be essential. However, for making fields read-only conditionally, UI policies are often the best fit due to their simplicity and direct applicability. In conclusion, UI policies were chosen in this scenario for their simplicity and direct capability to make fields read-only based on user role and record state conditions. While client scripts and ACLs have their uses, UI policies provided the most straightforward solution for this particular field behavior requirement in ServiceNow.
1 Helpfuls
0 Helpfuls


anittha 2023-07-06 19:42:54

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.


Ram 2023-07-09 12:09:17
Hi Anittha, You are right, Ui Policy is client side and Data Policy is server side validation. But better and clear answer would be. If we would like to apply the validations for the data that is entered by user manually on forms then we will use UI Policy. On the other hand, if we would like to apply validations for the data which is coming via Integration (or not entered manually by end users) then we will use Data Policy.
0 Helpfuls
HRDK 2025-01-27 11:59:51
Imo, the interviewer was expecting this: UI Policy is applied on the data entered via browser, while Data Policy can be applied on all the data entered into the system be it integrations, data source etc
0 Helpfuls
0 Helpfuls


Vinay Kumar 2023-04-06 04:05:46

what are the pre requisites to convert Ui policy to Data policy?


Sanjana 2023-04-13 06:58:54
For a UI policy to be eligible for conversion to a data policy, the following conditions must be met on the UI Policy form. - The Run scripts check box must be cleared. - The Global check box must be selected. - None of the UI policy actions can have Visible set to True or set to False. Visible must be set to Leave Alone. Source : https://docs.servicenow.com/en-US/bundle/utah-platform-administration/page/administer/form-administration/task/t_ConvertAUIPolicyToADataPolicy.html
0 Helpfuls
0 Helpfuls


Anonymous 2023-03-31 01:02:28

Is data policy change to UI policy


Mohith 2023-03-31 03:56:07
Do you mean to convert Data Policy to UI policy? If so, then yes, we can convert Data policy to UI policy. There is related link on Data Policy named as "Convert this to UI Policy" which will converts Data Policy into UI Policy.
0 Helpfuls
0 Helpfuls






🚀 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:

UPI QR Code

Comments