Ui Policie

sparit3737
Tera Contributor

What exculty use in services now, why its use and whats it is importnat in services now.

6 REPLIES 6

AndersBGS
Tera Patron

Hi @sparit3737 

 

as stated in the same question for server side code, please google it. 

Tanushree Maiti
Tera Patron

Hi @sparit3737 

 

Please read Module 3 of  course : Scripting in ServiceNow Fundamentals from Servicenow University.

Check Servicenow Documentation: Using UI policies 

 

For use cases , check community post, youtube.

https://www.youtube.com/watch?v=gtBsqbNOqKk

 

TanushreeMaiti_0-1793422924849.png

 

 

Part 23. UI Policies are client-side logic that enable you to dynamically change the behavior of fields on a form based on specific conditions. They are an essential part of the platform's form customization capabilities, allowing administrators to tailor user interfaces without needing to write ...

MasanaV
Tera Contributor

Hi @sparit3737 ,
UI policies are used to make a field visible, mandatory and read only based on certain conditions.
It is a quick and easy way to hide, or make certain fields editable.
But there is a small drawback. These can be done only on the form view as the Ui policies run in the browser. It does not enforce these rules on data that is fetched through REST/SOAP APIs.

Hope this finds helpful..

Aditya_hublikar
Giga Sage

Hello @sparit3737 ,

 

A UI Policy in ServiceNow is a one of  configuration that helps control the behaviour and appearance of form fields based on certain conditions, without writing complex scripts. It is mainly used to make fields mandatory, read-only, visible or hidden dynamically. We can also control the visibility of related lists using UI Policies. It is important because it improves the user experience, maintains data consistency, reduces manual scripting, and makes form configurations easier to manage. For example, on an Incident form, when a user selects the Category as Hardware, a UI Policy can make the Configuration Item field mandatory or display additional fields related to hardware. In short, UI Policies help us manage form behaviour dynamically with minimal , almost no coding.

 

If this helps you then mark it as helpful and accept as solution .

Regards ,

aditya