how to hide variable on catalog based upon MRVS value selection.

ANIL KUMAR10
Tera Contributor

On change of the Value in MRVS i have to hide Variable on Catalog Item,

please suggest code....

3 REPLIES 3

Sumit Pandey1
Kilo Guru
Kilo Guru

I don't think that is possible without doing DOM manipulation, I wouldn't recommend it but you could have an onchange client script on MRVS, and that will hide the variable on the catalog item by setting the display to NONE for that html field. 

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Anil,

there are some limitations even if you write onChange client script on variable within MRVS; you have issue accessing the variable outside the MRVS

check these links for help

Multi-Row Variable Sets: How to get or set values for variables outside of the MRVS (Native UI or Se...

Accessing other form variables from inside multi-row variable pop-up

Multi Row Variable Set: communication with main form

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@ANIL KUMAR 

Thank you for marking my response as helpful.

If my response helped you please mark it correct to close the question so that it benefits future readers as well.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader