state_ readOnly

yardenKrispel
Tera Contributor

How do you make the field in state in incident to be read-only in service operaiton workpac?

2 ACCEPTED SOLUTIONS

@yardenKrispel Instead of the UI Policy, you can create an onLoad client script with following configuration and it will do the job for you.

 

Screenshot 2023-11-20 at 1.53.08 PM.png

Script:

 

function onLoad() {
   g_form.setReadOnly('state',true);
}

Hope this helps.

View solution in original post

Hi @yardenKrispel 

open UI policies from left navigation and add your view by checking on that reference 

 

yaswanthi2_1-1700469568894.png

after saving the form.. go to related list and add state ReadOnly in UI policy action

yaswanthi2_2-1700469636502.png

 

 

View solution in original post

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @yardenKrispel 

 

Here is quick guide:

 

AtulyaLNG_0-1700476090720.png

 

Save this policy and go to UI policy action and mark the field read only.

*************************************************************************************************************
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]

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