How Do I Show or Hide a Control Based Off Dropdown Selection


Badge +7

I have a dropdown with 2 options. If I select option 1 I need to show control 1 (hide control 2), and if I select option 2 I need to show control 2 (hide control 1). 

I'm trying to use Rules to accomplish this.


3 replies

Userlevel 7
Badge +17

You can use rules like the following. I have a choice drop down with the options "Option 1, Option 2, Option 3" and three labels that say "Label 1, Label 2, Label 3". 

I have three rules that will hide each label if its corresponding option is not set. 

If the drop down is not set to Option 1, then hide the label Label 1, etc.

203681_pastedImage_1.png

203682_pastedImage_2.png

203683_pastedImage_3.png

203720_pastedImage_4.png

203721_pastedImage_5.png

Badge +7

That's exactly it! Thank you. I was trying to use If() and !inArray() and could not get them to work. Thank you.

Badge +7

This looks like it might be the cloud version?  I have an on prem version.  Would you know the steps for that?

Reply