Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

MRVS ReadOnly

NareshKumaV9891
Tera Guru

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

4 REPLIES 4

Anurag Tripathi
Mega Patron

IS mrvs_name an oob field, if not then the name probably would be u_mrvs_name

g_form.setReadOnly('u_mrvs_name', true);

-Anurag

NareshKumaV9891
Tera Guru

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.

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

 

 

 

 

 

Juan5
Kilo Explorer

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