Use PDIs? Take our 5-minute survey to help shape the PDI roadmap.

I Have one varible which is select box having 28 choices but now user want it multi select.which is

sonimore101
Tera Contributor

I Have one variable which is select box having 28 choices but now user want it multi select. What is best approach to implement this without creating custom table.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@sonimore101 

Easy approach if customer is ok

-> create custom table and have 1 field which is name

-> create 28 records into that table and each record with that choice label as Name

-> create list collector variable pointing to this custom table and user can select multiple values

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

9 REPLIES 9

Hi,
Yes, you can create 28 checkboxes.

Hi,
Yes, you can create 28 checkboxes.

Abhishek Pal
Giga Guru

Hi @sonimore101 ,

A Select Box variable supports only one selected value. There is no supported variable attribute or Catalog Client Script that converts it into a true multi-select field.

Since you do not want to create a custom table, the recommended OOB approach for 28 fixed choices is to use Checkbox variables.

Recommended implementation:

1. Create a Variable Set for the options.
2. Add one Checkbox variable for each of the 28 choices.
3. Add a Label variable before the checkboxes to display a meaningful group title.
4. Use containers or sections to divide the choices into logical groups.
5. Update the Flow or script to process the selected checkboxes.

If the form becomes too long, another OOB option is a Multi-Row Variable Set:

1. Create an MRVS.
2. Add one Select Box variable containing the 28 choices.
3. Allow users to add one row for each required choice.
4. Set the maximum number of rows using:

max_rows=28

5. Add validation if duplicate selections must be prevented.

A true searchable multi-select interface requires a List Collector. A List Collector selects multiple records from a table, so the cleanest long-term design would be a small reference table containing the 28 options.

Recommended decision:

Fixed choices and no custom table
- Checkbox group

Compact layout and no custom table
- Multi-Row Variable Set

Searchable true multi-select
- Custom reference table with a List Collector

I would not recommend:

- DOM manipulation to convert the Select Box into a multi-select field
- Modifying the OOB catalog widgets
- Using Lookup Multiple Choice, because it displays radio buttons and remains single-select
- Using the Question Choice table as a runtime business-data source
- Changing the existing variable type directly if it already has submitted requests

If the existing Select Box is already in use, create a new variable and update the related Catalog Client Scripts, UI Policies, Flows, and reporting logic. This preserves the historical values stored against previous requests.

Hope this helps!

If this response helped, please mark it as Helpful.
If it resolves your issue, please Accept it as Solution.

Kind Regards,
Abhishek Pal

svirkar420
Kilo Sage

Hi @sonimore101 , You will not be able to select multiple options in choice type variable,  for doing that you will have to create a list collector type variable so the user will be able to select multiple options for same variable.

 

If this response helps you mark it as accepted solution and give it a thumbs up 👍. This help me and community to find answers quickly.

Best Regards,

Saurabh V.

TharaS657398130
Tera Guru

Change the variable type from Select Box to List Collector