Multiple selection in Catalog Item variable (Maintain Item)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11 hours ago
Title: Multiple selection in Catalog Item variable (Maintain Item)
Hi Team,
I am working on a Catalog Item in ServiceNow and I need a variable where the user can select multiple options from a list of predefined values.
Currently, I created the variable with the type “Multiple Choice”, but it only allows selecting one option at a time. My requirement is to allow the user to select more than one option from the available choices.
I checked the available variable types, but I could not find a direct multi-select dropdown option.
Could someone please suggest:
The best variable type to allow multiple selections from predefined options?
Whether this can be achieved using List Collector, Checkboxes, or any other approach?
If there is any recommended best practice for this scenario?
Thank you in advance for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11 hours ago - last edited 10 hours ago
Hi @aparnaravi
For allowing the user to select more than one option, move to
either List collector ( if lots of options are there)
or
Check box ( if option is 2-5, under a label , that much check box you can use)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10 hours ago
Hi @aparnaravi
You should use "List Collector".
Also please check out this: https://www.servicenow.com/community/servicenow-ai-platform-articles/how-to-create-a-multiple-select...
-------------------------------------------------------------------------------------------------------------------------------------------
If my response solves your query, please mark helpful by selecting accept as Solution and Helpful. Let me know if anything else is required.
Thanks,
Prerna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10 hours ago
Hello @aparnaravi ,
Use checkbox variable for selecting multiple options :
After that if you want to get access to those variable in client scripts then use "g_form.getEditableFields()" :
var fields = g_form.getEditableFields(); // Returns array of editable fields
for (var i = 0; i < fields.length; i++) {
g_form.addInfoMessage(fields[i]);
}
If my response helped mark as helpful and accept the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10 hours ago
2 approaches
1st -> create custom table to hold those options and then create list collector variable pointing to this table
2nd -> create a dummy select box variable and add choices in question_choices table and then make your list collector point to that table and add reference qualifier, no custom table needed
Tip: How to use "List Collector" as an alternative to multiple checkboxes?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
