selecting single option in checkbox should allow a variable to be displayed

ServiceNow Use6
Tera Guru

Hi,

I have a requirement. For the drop down I have created, my client wants that the variable should allow multiple values to be selected. So, I have decided to create multiple checkboxes (a, b, c, d, e, f, g). There is a caveat here. If I check only the c option, it show display another checkbox variable z. How can it be done. So, for here, if I select PROD, it should display some another checkbox variable. Kindly help.

find_real_file.png

Regards

Suman P.

1 ACCEPTED SOLUTION

Zach Koch
Giga Sage
Giga Sage

If you are using checkboxes, you would first create all the checkboxes, then create a UI policy and then add the value, when selected, as a condition, then in the UI Policy Actions, select the other checkbox you wish to hide until the condition is met.

As you can see in my screen shot, 

 

It this solved your issue, please mark this correct and helpful, thank you!

This picture shows when nothing is selected, option D is hidden.

find_real_file.png

When option a is selected, d still does not show up

find_real_file.png

Now in this one, when c is selected, d shows up

find_real_file.png

This is what the UI policy looks like

find_real_file.png

This is what the UI Policy Action in the related list looks like

find_real_file.png

It this solved your issue, please mark this correct and helpful, thank you!

If this information helped resolve your issue, please remember to mark response correct and thumbs up to help future community members on this information, thanks!

View solution in original post

3 REPLIES 3

Zach Koch
Giga Sage
Giga Sage

If you are using checkboxes, you would first create all the checkboxes, then create a UI policy and then add the value, when selected, as a condition, then in the UI Policy Actions, select the other checkbox you wish to hide until the condition is met.

As you can see in my screen shot, 

 

It this solved your issue, please mark this correct and helpful, thank you!

This picture shows when nothing is selected, option D is hidden.

find_real_file.png

When option a is selected, d still does not show up

find_real_file.png

Now in this one, when c is selected, d shows up

find_real_file.png

This is what the UI policy looks like

find_real_file.png

This is what the UI Policy Action in the related list looks like

find_real_file.png

It this solved your issue, please mark this correct and helpful, thank you!

If this information helped resolve your issue, please remember to mark response correct and thumbs up to help future community members on this information, thanks!

Hi Zach,

What if both a, b, c, are selected? It shouldn't show up.

Regards

Suman P.

With how I have it set up, only the selection of C matters.  A, B could be selected and D wouldn't show up, however, if C is selected (even if other things are selected as well) then D will show up.  You can change the UI policy conditions to fit your need, or create more UI policies where applicable to achieve the desired results

It this solved your issue, please mark this correct and helpful, thank you!

If this information helped resolve your issue, please remember to mark response correct and thumbs up to help future community members on this information, thanks!