What type of variable need to choose,

Raghavendra Rao
Tera Contributor

Hi all, I am confused about one thing.

I have created a catalog item in that One variable has two values like test1 and test2.

If I select a test1 then need to show only some question choices, and remain for the test2.

For ex. a variable contains test1 and test2.

             b variable contains a, b, c, d, e, f, g, h, i, j.

select test1 and show only a, b, c, d, e.

for test2 f, g, h, i, j.

and also need to choose multiple values in b variable.

4 REPLIES 4

Sagar Pagar
Tera Patron

Hi,

 

You need to use below types.

 

Varibale1: Reference/ Select box/ Multiple choice - to select single value

Variable2: List collector - to select multiple values

For Variable types please refer doc's: Types of service catalog variables

 

Thanks!

Sagar Pagar

The world works with ServiceNow

SumanthDosapati
Mega Sage
Mega Sage

Hi,

First variable can be 'Select Box' or 'Multiple Choice'.

Second variable should be 'List Collector'.

 

Write an onChange client script on first variable to display options in variable two.

 

Mark as correct or helpful as applicable.

Regards,

Sumanth

Muralidharan BS
Mega Sage
Mega Sage

Hi Raghav, 

Try to use the new Catalog Builder, it's a step by step easy flow to create cascading question types like yours. You can also define approvals, tasks etc on the fly.

Catalog builder - https://docs.servicenow.com/bundle/sandiego-servicenow-platform/page/product/service-catalog-management/concept/catalog-builder.html

Thanks

ideamax
Mega Expert

Hi Raghav,

This thread might help you - https://community.servicenow.com/community?id=community_article&sys_id=ed94c724db75c410feb1a851ca9619bc

Mark helpful if it helps

Cheers

Pratik