To Show options based on field in catalog item

Shalika
Tera Expert

I have a catalog item with variables 'Location' and ' Selection of needed areas user need to have access' of type List Collector. In Location I have values Porovoo and Singapore. In  Selection of needed areas user need to have access, I have some values as follows-

Shalika_0-1669305316599.png

 

My requirment is that when user selects Porvoo in Location then the 1st 4 values appear and when user selects location Singapore then the last value should appear.

I am trying to do this using client script, but not able to do it how.

5 REPLIES 5

Sagar Pagar
Tera Patron

Hi,

Can you share your client scripts here?

 

Thanks,
Sagar Pagar

The world works with ServiceNow

Saurabh Gupta
Kilo Patron
Kilo Patron

Hi,

Can you please tell me what the relation is between two table referenced in variables "location" and "Selection of needed areas user need to have access".




Thanks and Regards,

Saurabh Gupta

The "location" and "Selection of needed areas user need to have access" are list collector field and both are referencing to same table. 

Mohith Devatte
Tera Sage
Tera Sage

Hello @Shalika ,

it can be done thorough client scripts but before that is your selection field a choice field or a reference field ?

 

if reference , which table and how are two fields related?