Rule To Hide Panel Based On Single or Multiple Choices

  • 15 February 2022
  • 1 reply
  • 285 views

Userlevel 5
Badge +19
TOPIC
How to hide or show panels using a rule based on single or multiple choices. 
INSTRUCTIONS
Add a rule similar to the following to the desired panel and select the 'Hide' option from the rules properties:
ChoiceType instanceof Array ? not(inArray(ChoiceType, "ChoiceA")) : ChoiceType != "ChoiceA"

Note: The phrase "ChoiceType" in the rule above is the name of checkbox control. "ChoiceA" should be updated to reflect the desired choice to hide or show the panel.
ADDITIONAL INFORMATION
RELATED LINKS

1 reply

Badge +6

How do you modify this to look for 2 different choices?

Reply