Display Multi variable set on selection of it in the catalog item

Loganathan Keer
Tera Contributor

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

2 ACCEPTED SOLUTIONS

Ankur Bawiskar
Tera Patron
Tera Patron

@Loganathan Keer 

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.

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

View solution in original post

@Loganathan Keer 

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.

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

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@Loganathan Keer 

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.

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

This part of script I have performed in onLoad Client script. On change of the value in the field I want to display the respective Multi Variable set

@Loganathan Keer 

So did my script answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@Loganathan Keer 

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.

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