Selecting only 2 out of 5 checkboxes in a quiz question

Jul 10, 2014

Is there any way to only allow the user to select, say, 2 checkboxes in a quiz question that contains up to 5 options? I have a client that would like to prevent the user from selecting more than 2 boxes.

Thanks!

11 Replies
Christine Hendrickson

Hi Jason,

There are probably a few options for this.

Personally, I would probably disable the checkboxes based off of a variable. For example, you could create a number variable with the initial value of "0", then have each selection Add +1 to the variable. When the variable changes and equals "2", you should be able to disable the checkboxes that are not currently in the "Selected" state.

Let us know if you have any trouble with this, or any questions.

Would also love to hear other suggestions on this!

Best of luck on the project and have a great day,

Christine

Leslie McKerchie

Hi John and welcome to E-Learning Heroes :)

This thread is a bit dated, but I'll try to help you out here.

You mention that the solution only works once. Do you need it to work on the same question or do you mean for subsequent questions in the course?

You should be able to add a trigger to re-set the variable when the user clicks it - maybe this is the submit button or maybe it's when the slide timeline starts depending on your need.

If you have a sample .story file started, I bet someone in the community will be able to better assist with your design.

Good luck with your project :)

 

This discussion is closed. You can start a new discussion or contact Articulate Support.