Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Dynamic Multiselect?

drewrodrigu
Mega Contributor

Hey there!

I was wondering if there's a standard way to dynamically fill options for a multiselect on a catalog item question/variable?

 

We're making a request based on a previous field's input and then this determines the options for the next field.

 

So far I've tried various approaches, but they all seem like hacky workarounds (like updating a table after our API request comes back and then trying to filter the records to the user).

 

What would be the best approach here?

For a single select, I was able to manipulate the options from a client script just fine, but multiselect requires me to select a table...

1 REPLY 1

Tanushree Maiti
Kilo Patron

Hi @drewrodrigu ,

 

There are two options available.

 

Option 1:

List Collector : A list collector in  ServiceNow is a Service Catalog variable type that enables users to select multiple records from a referenced table (e.g., users, groups, or assets) in a single request.

 

Option 2: ( If choice count is approx  2-5 , otherwise form can break)

You can use a label with multiple CheckBox variables

 

e.g  You  have a Environment variable which has option Dev, Test, Prod

 

So you can take Environment label -> under that 3 checkboxes : for Dev, Test, Prod option

 

Here also user can multi select.

 

Recommended option : Based on  Requirement. List Collector is flexible , easy to implement.

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: