How to populate a multi row variable set based on selected variables in a catalogue item

matthew_hughes
Kilo Sage

I'm the below catalogue item where users have to select their options:

matthew_hughes_0-1734002543946.png

 

On the final part of my catalogue item, I have a multi row variable set where I'm wanting to add the selected details:

matthew_hughes_1-1734002620870.png

 

Does anyone know how I need to populate my multi row variable set with the selected options?

 

1 ACCEPTED SOLUTION

matthew_hughes
Kilo Sage

I removed an if statement from my script include which was causing an issue.

View solution in original post

19 REPLIES 19

Ankur Bawiskar
Tera Patron
Tera Patron

@matthew_hughes 

are you saying the MRVS should be auto-populated based on some above variables?

what's your business requirement?

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

Hi @Ankur Bawiskar  That is correct. The requirement is to display list of selected business applications and confirm the platform or lab they will be transfering from and to (from the answers to questions above). Show Business Application Name, Bus app Number, Business Application Owner  and answers from original platform question (Q1) and New Platform or lab question (Q3 or if selected Q4) eg if user selected existing platform as 'Cloud' and new platform as 'Business Banking' show.

@matthew_hughes 

so user will select business app from list collector variable and based on that you need to add information from that Business app into each row of MRVS?

you will have to ensure you create correct onchange client script on those required variables.

I will suggest to populate the MRVS after RITM is submitted rather than having multiple onChange client scripts

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

@Ankur BawiskarWould one way of triggering it be by having a checkbox as a variable, so that if it's checked, then populate the variables?