Select maximum of 2 answers

Hi all!

I was playing around with a personal challenge to develop a version of a multiple choice question where user needs to select a maximum of 2 answers. If user selects the third choice, the first choice should become deselected.

screenshot of the interaction

After some head scratching and a coffee, I came up with a nice solution, that needs only 36 triggers and 4 variables.

Check the interaction live here.

Source attached. Dig around. :)

2 Replies
Lewis Brennan

I really like what you've done here!

I had a play and noticed that you could tidy some of the triggers into one trigger- where variables are used you can use that info anywhere really, so I've managed to get it down to 21 triggers for the same functionality. Have a look, see what you think.

Cheers, Lewis