Field that has multiple selections - Would like panels to show depending on what was selected

  • 5 September 2020
  • 1 reply
  • 6 views

Badge

I'm creating a form and I have a field where users can select more than 1 option. I would like panels that's connected to those options to appear on my form. For example, if user selects option A, C, F, and G. Then, panels for A, C, F, and G will appear on the form. I tried using the rule FIELDNAME!="A" But, that only works if ONLY 'A' is selected -- otherwise it will hide the panel if I select multiple boxes.


1 reply

Badge +8

HiĀ @sierraT,

the value of a multiple choice option control is stored as an array which means you can use the inArray-Function to show and hide your panels.

I have an option control, set to "check boxes (multiple selection)" with options A,B and C named "opt"
I have 3 panels on my form one for each option above.
Using the formula !inArray(opt,"A") -> hide, the panel for A is only displayed when option A is chosen

Hope this helps!

Reply