- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2017 02:45 PM
currently, I have demand records that contain catalog variables generated from the form of a record producer. I need a way to make these variables read-only inside the demand records, is this a supported feature in ServiceNow?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2017 02:55 PM
You should be able to use a client script using the following syntax:
g_form.setReadOnly('variables.VARIABLENAME', true);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2017 02:53 PM
Hello Benjamin,
You may find the below thread helpful.
https://www.servicenowguru.com/scripting/business-rules-scripting/variables-form-readonly/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2017 02:55 PM
You should be able to use a client script using the following syntax:
g_form.setReadOnly('variables.VARIABLENAME', true);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2017 04:30 PM
Thank you Michael, it worked!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2024 11:20 PM
g_form.setReadOnly('variables.VARIABLENAME', true);