- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2022 12:34 AM
Hello Community,
I am using multirow variable set in catalog item it is editable in catalog ,I want to make the multirow variable set ready only in RITM after submitting catalog request.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2022 04:32 AM
Hi,
Easy way to do this is using UI policy
Please refer below article written by
Or
If you want to make all the variable on RITM as readonly then use below code in script
g_form.setVariablesReadOnly(true)
Please let me know if you need any other help
Thanks,
Valmik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2022 12:37 AM
Hi Sowmya
You can write onload clientscript which applies on RITM/TASK with below logic
g_form.setReadOnly('variableset_name', true);
or using UI Policy
refer below link.
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2022 12:42 AM
You can write an onLoad Client script
check the checkbox applied to requested Item
and uncheck the checkbox applies to catalog item and have the below code
g_form.setReadOnly('variableset_name', true);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2022 01:53 AM
Hi ,
I have already tried this its not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2022 04:04 AM
Can you share the image again and post the updated code here.
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP