- 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
01-14-2021 11:02 PM
Hi,
you can use list_edit ACL for that field and make it readonly only on list
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
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
01-14-2021 11:26 PM
Thank You Ankur, It worked.
I have marked the answer as correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2021 11:31 PM
Glad to help
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader