Solved

Hide Panels- Multiple conditions rule

  • 20 March 2018
  • 2 replies
  • 144 views

Badge +3

Hello, 

 

I'm having a bit of trouble working on hiding panels depending on the selection of a drop down. The drop down has several codes which will populate a section (hidden panel).

This is how to the form is supposed to work: User selects a code from first drop down, second drop down populates a lit of codes associated with that first drop down selection. When a code is selected from second drop down the associated panel should show. 

 

This is the rule i'm using but it doesn't seem to work: 

CodeType(is the selection from the second dropdown)

 

CodeType=="Code_1" || CodeType=="Code_2" || CodeType=="Code_3" || CodeType=="Code_4" || CodeType=="Code_5" || CodeType==""

 

Can someone point me in the right direction on how to accomplish this? 

 

Thanks in advance

icon

Best answer by fhunth 20 March 2018, 18:59

View original

2 replies

Userlevel 6
Badge +16

Try using 

CodeType contains("Code_1") instead CodeType=="Code_1"

Badge +3

Hi Fernando, 

Thank you for your response. I had to lookup how to use the "contains" function and it got it working. This is what i had to change it to: 

!(contains(CodeType,"Code1") || contains(CodeType,"Code2"

Thank you again!

Reply