- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2025 06:29 AM - edited ‎03-26-2025 06:36 AM
I have requirement to display the multi row variable set on the basis of selection of it in a list collector field. How do I achieve this via Client Scripting
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2025 06:42 AM
you want to show/hide entire MRVS?
if yes then simply create onChange on list collector and use this syntax
g_form.setDisplay('mrvsVariableSetName',false);
// OR this
g_form.setVisible('mrvsVariableSetName',false);
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2025 08:13 PM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2025 03:57 AM
Hello @Loganathan Keer ,
Just to understand the context:
- You have a list collector on your form that references the Variable Sets table, with the filter Type = Multi Row?
- And then you have related all those Multi Row Variable Sets to the Catalog Item itself?
- And if the user selects one or multiple MRVS in the list collector you want those particular MRVS to be made visible?
Is that correct?
How many of those MRVS are applicable to this Catalog Item? If it's just a few, have you considered using check boxes instead of a list collector to make this a bit more user friendly? You could then create an onChange Client Script for each check box. If its checked it would execute code similar to what @Ankur Bawiskar has shown.
Regards,
Robert
