Expand my Community achievements bar.

Multiple checkbox combinations for different outcomes

Avatar

Level 1

I have a form that has 5 checkboxes.  People can choose multiple checkboxes and based on those selections, different sections are shown.

Possible outcomes

Box1

     ShowNothing

Box1, Box2

     Show1

Box1, Box3

     ShowNothing

Box1, Box4

     ShowNothing

Box1, Box5

     Show3

Box2

     Show1

Box2, Box3

     Show1

Box2, Box4

     Show1

Box2, Box5

     Show4

Now, my understanding is that I want to use JavaScript here and group the checkboxes.  I assume you apply the script to the Group.  I need a little help writing the if or switch statement.  I'm not sure which works better here.  If someone can help get me started, I can write out all of the possible scenarios after.  Thank you for any help you can provide.

0 Replies