Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

Multiple checkbox combinations for different outcomes

bmrscreamr
Level 1
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