How to make a list column read-only based on another field using onCellEdit?Body:
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
Hi everyone,
I am new to ServiceNow and trying to write an onCellEdit client script.
My requirement is: If the Category of a record is "Inquiry / Help", I want to prevent users from changing the State column directly from the list view (make it read-only/uneditable).
I have already successfully implemented this using ACLs and Data Policies, but for this specific use case, I specifically need to achieve it using onCellEdit.
Could someone please show me a simple, beginner-friendly example of how to write this onCellEdit script?
Thank you!
0 REPLIES 0