show/hide variables based on list collector choice

annmol1
Kilo Expert

Hi there

I've a requirement to show/hide variables based on the systems I choose in a list collector. As an example, I have a set of systems in the list such as Service Now, Primavera, ARC etc. I choose Service Now and Primavera from this list and it should a set of variables for each of them. For ServiceNow I need to display a variable for users to choose Support group and for Primavera I need to know if they are approver or not.. How can I achieve this?

Usual ui policy with contains doesn't work and the client script on change of the variable just display the variables when the page is loaded.

Please help!

Thanks

Annmol

3 REPLIES 3

Brad Tilton
ServiceNow Employee
ServiceNow Employee

You should be able to use a ui policy or onchange client script, but you'll want to remember that the value of a list collector is a comma separated list of sys_ids, so you would typically do variable contains sys_id as you condition.


thanks Brad.. that helped..


Naveen Raja Go1
Tera Contributor

I have a similiar kind of requirement when on selection of a particular choice of list collector field a variable should be shown and on selection of another the variable should be shown.

Can anyone please help me on this.