Dynamic Multiselect?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday - last edited yesterday
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.
