How Multiple selection is allowed for variable

Manasa Allu
Tera Contributor

Hi team,

 

I have one variable called as "ServiceNow Environment" with choices prod, dev, and test. 'Dev' choice is the default one and the user allow to select multiple values at a time.

 

How to achieve this requirement.

 

Regards,

Manasa.

 

 

3 REPLIES 3

SN_Learn
Kilo Patron
Kilo Patron

Hi @Manasa Allu ,

 

You can achieve the above requirement by creating variables/variable sets. I have same the same by using variables and pasted screenshots below for reference:

 

variables.png

You need to create 3 variables of type checkbox and in all of them you have to tick 'selection required'.

selection_req.png

 

The user can now select multiple choices as shown below:

portal.png

 

Please mark this as Correct or Helpful if it helps. Thanks.

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.

Hi SN_Learn,

 

How to set the default value as Dev.

 

Regards,

Manasa.

Hi @Manasa Allu ,

 

You can set the default value for the option Dev as 'true' which will set it as selected in Portal by default.

Please have a look at the attached images below:portal.pngdev.png

 

Please mark this as Correct or Helpful if it helps. Thanks.

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.