MRVS ReadOnly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2019 05:44 AM
Hello All,
I have a MRVS which i want to make it readonly with edit/add/remove all buttons disabled.
g_form.setReadOnly('mrvs_name', true); doesnt work.
Any idea how to achieve this?
Thanks,
VNK
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2019 05:46 AM
IS mrvs_name an oob field, if not then the name probably would be u_mrvs_name
g_form.setReadOnly('u_mrvs_name', true);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2019 05:51 AM
Hi Anurag,
mrvs_name is name of variable set.
I tried to set it to readonly but that doesnt work 😞
readonly here i mean is, it should disable edit, delete, add and remove all buttons.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2019 12:33 PM
Hi Mate,
You cannot add variables with read roles in a multi-row variable set.
https://docs.servicenow.com/bundle/london-it-service-management/page/product/service-catalog-management/concept/c_ServiceCatalogVariableSets.html

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2019 11:32 AM
VNK,
Were you able to accomplish this?
We are looking to do the same thing. MRVS ReadOnly with all buttons disabled on subsequent OnLoads.
Regards,
Juan