- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2021 10:40 PM
I wanted to make the "Request item" field read only on list view.
Currently im using onCellEdit client script [ below code ], Its not getting save but i want the field to be Read-Only
function onCellEdit(sysIDs, table, oldValues, newValue, callback) {
var saveAndClose = false;
callback(saveAndClose);
}
Can you please show me how to make the field read-only
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2021 11:07 PM
Hi,
1) elevate your role as security_admin
2) create new list edit ACL on catalog task table and field as request_item
3) use advanced checkbox as true
4) admin overrides uncheck - means even admin cannot list edit
4) script as
answer = false;
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2025 10:28 PM
@Ankur Bawiskar I had a similar problem, and found your suggestion helpful, thanks.
I just have one question can this be applied on based on the roles. I have a requirement where people who have user role cannot edit the fields in list view, but people who have manager role should have the access to edit all the fields on list view.
Do you have suggestions on how (if) that be achieved ?
Best regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2025 11:00 PM
Can you post a new question for this and share all the details and tag me there as this is an old thread?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2025 11:11 PM
Sure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2025 10:57 PM
Hi @Ankur Bawiskar
Thanks for your previous responses, It works and I have closed the previous threads and accepted as solution