how to hide variable on catalog based upon MRVS value selection.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2022 10:13 PM
On change of the Value in MRVS i have to hide Variable on Catalog Item,
please suggest code....
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2022 11:52 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2022 12:03 AM
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
Accessing other form variables from inside multi-row variable pop-up
Multi Row Variable Set: communication with main form
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2022 01:53 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader