- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-18-2017 03:58 AM
Hi,
I am currently working on the Service Catalog application.
In that, I have created a Catalog Item named "General Request" which creates a Request when ordered. Along with a request, RITM will also be created with variables from catalog item. When RITM is created, the variables should be made read-only.
Below is the screenshot of catalog item:
Below is the screenshot of the RITM created which contains the variables from Catalog Item. Here, I want the "Requesting for Company" and "Client Requestor" fields to be made read-only.
How can I make them read-only. Please help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-18-2017 04:12 AM
Hey Prudhvi,
g_form.setReadOnly('Variable name', true);
post me your feedback
Please Hit ✅Correct, âÂ��Helpful, or ��Like depending on the impact of the response
Have a lovely day ahead
Regards,
Divya Mishra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-18-2017 04:11 AM
Hey Prudhvi,
g_form.setReadOnly('Variable name', false);
post me your feedback
Please Hit ✅Correct, âÂ��Helpful, or ��Like depending on the impact of the response
Have a lovely day ahead
Regards,
Divya Mishra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-18-2017 04:12 AM
Hey Prudhvi,
g_form.setReadOnly('Variable name', true);
post me your feedback
Please Hit ✅Correct, âÂ��Helpful, or ��Like depending on the impact of the response
Have a lovely day ahead
Regards,
Divya Mishra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-18-2017 04:35 AM
Hi Divya,
Thanks for the reply. But, could you please tell me where to write those lines of code in Servicenow? I have three variables which need to be read-only. So, it comes up to 3 lines of code. Where do I write those lines?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2017 09:55 PM