I need to make a field read only in list view using on cell edit client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2023 01:47 AM - edited 12-19-2023 01:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2023 01:53 AM
Hi @Bruce lee
I covered this in below video
Or do via ACL
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2023 02:07 AM
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....