In Change module When state is closed I need to make specfic field read only .

Bruce lee
Tera Contributor

1-In Change module When state is closed I need to make specfic field read only when state is closed on form load I'm using Ui policy also I tried Client script  But its not working  .

2-That field is still editable.

 

what may be the reason any one have any idea

2 REPLIES 2

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Bruce lee 

Did you try with UI policy , it must work.

Share some more details or screen shot to supportyou. 

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

@Bruce lee Could you please share what you tried so far? Also, instead of a UI Policy/Client script, you could also make use of a write ACL on state field and have a condition as follows.

 

Screenshot 2024-01-25 at 5.09.38 PM.pngScreenshot 2024-01-25 at 5.10.43 PM.png

Uncheck admin override if you do not wish to let admin make any changes on state once the state is closed