I need to make a field read only in list view using on cell edit client script

Bruce lee
Tera Contributor

communi.PNG

2 REPLIES 2

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Bruce lee 

 

I covered this in below video

 

https://youtu.be/xttmeS4YKuM

 

Or do via ACL

https://www.servicenow.com/community/developer-forum/is-there-any-way-to-make-selected-fields-read-o...

 

https://www.servicenow.com/community/developer-forum/set-read-only-the-filed-in-the-list/m-p/1348429

 

 

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

****************************************************************************************************************
csa #ServiceNow #TechnoFuncational Disclaimer: These videos are from my training batch. These videos did not promote any ServiceNow Sales pitch or marketing. These videos are only for knowledge purposes & basic on my experience & Knowledge. Redistribution or copying of functionality is not ...

Sohail Khilji
Kilo Patron
Kilo Patron

Best is to create an ACL like this :

 

1) elevate your role as security_admin

2) create new list edit ACL on incident table and field as state

3) use advanced checkbox as true

4) admin overrides uncheck - means even admin cannot list edit

4) enter script as

answer = false;

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect