The CreatorCon Call for Content is officially open! Get started here.

Variable type - Help required

Adil N
Tera Expert

Hi all, 

 

I am trying to figure out which variable type i need to select what i want (see screenshot is the ability to select quantity type if one the the options is chose 

 

so for example if they choose monitor and keyboard they will have an option to input monitor x 4 

keyboard x 3 etc 

 

Any help is much appreciated 

 

TIA

 

 

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@Adil N 

your requirement is not clear.

what user will select once they select the checkbox

 

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

apologies - i just want the user to be able to select from he list attached and when they click monitor for example they have the option to select how many monitors and then if they select monitor and keyboard and mouse they need to specify the quantity once selected

Ashish Parab
Mega Sage
Mega Sage

 

Hello @Adil N ,

 

As per my understanding, the requirement you gave is that you want a variable where you can add the quantity for selected equipment.

 

I suggest creating a Select Box where you can add options (e.g., 1, 2, ... 10). If the options are unpredictable, create a Single Line Text variable and apply validation to only accept integers. Each checkbox should have a separate variable to enter the quantity, which will be visible only when that checkbox is checked (utilize a UI Policy for this).

Let me know if you want any further assistance.

 

Please mark my response as Correct and Helpful if it assists you.


Thanks,
Ashish

 

Thank you will try this and feedback