Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

How to Select All Multiple Choice Options in an MRVS

Anagha Girme
Tera Contributor

Hello Team,


I have a requirement involving a Multi-Row Variable Set (MRVS) in a Service Catalog item.

For example, I have an MRVS named 'Transport'. Inside the MRVS, there is a Multiple-Choice variable named 'car_names' with around 10 choices:

1. Toyota
2. Nissan
3. Camry
4. Mazda
5. All Cars

The requirement is that when the user selects 'All Cars', all the individual car options should automatically be added/selected in the MRVS.

For example, instead of keeping a row with 'All Cars', the MRVS should populate rows for Toyota, Nissan, Camry, Mazda, etc.

I tried using a Catalog Client Script, but I am having difficulty triggering the logic and updating the MRVS when 'All Cars' is selected from the variable inside the MRVS.

Has anyone implemented a similar 'Select All' functionality for a Multiple-Choice variable inside an MRVS? If so, could you please share the recommended approach or an example?

 

Thanks in advance.

0 REPLIES 0