- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2025 09:19 AM
Hello, I have a variable set on a change request that I would like to show as read only. I have set the variables within the variable set to read only but this does not work for the entire variable set. Grey out the section on the right like the section on the left. Any help is greatly appreciated
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2025 09:23 AM
what do you mean by it doesn't work for entire variable set?
you can use this line in onLoad client script on change_request table
function onLoad() {
g_form.setVariablesReadOnly(true);
}
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2025 09:23 AM
what do you mean by it doesn't work for entire variable set?
you can use this line in onLoad client script on change_request table
function onLoad() {
g_form.setVariablesReadOnly(true);
}
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader