client script-set read only

yardenKrispel
Tera Contributor

 

Hi, I need to make a client script that will make the state button read only even on the fly. A new incident that I open will directly be read only and also when there is an incident form in the system and I want to change the status, so I can't. please me give client script

 

17 REPLIES 17

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @yardenKrispel 

 

Sorry, lil confusion here. Its state button or field? 

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

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

yardenKrispel_0-1700745769819.png

 

So, you want to make this read only. or user cant change the value.

 

Write oncell edit script.

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

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

So I made a client script but it doesn't work, can you help me with the code?