Quiz question Oct 30, 2020 By Erika Flindall In a multi-select question, how to I make sure that a user has chosen three answers before they can submit?
Joe Hauglie over 3 years ago10/30/20 at 6:02 pm (UTC) What comes to mind is to simply use conditions on the state of the answer objects. The answers have at least two states: normal and selected So say you have four answers: * User can click "submit" button if the state of "answer x" is: A1 = not normal (instead of selected, since you don't know which answers the user will select) and A2 = not normal and A3 = not normal These conditions will then enable the state of the "submit" button to be active. You could probably use variable as well, but this seems a good place to start. Best of luck - Joe H
Jeff Forrer over 3 years ago10/30/20 at 7:10 pm (UTC) Try this out, let me know if this works for you. Many ways to do this but tried to keep simple. SubmitMCQ_3_v1.story
Erika Flindall Author over 3 years ago10/30/20 at 9:02 pm (UTC) @JeffForrer Thank you so much; I created a variable called threeTries, but couldn't figure out how to get it to track the # of attempts... this is great!
3 Replies
What comes to mind is to simply use conditions on the state of the answer objects. The answers have at least two states: normal and selected
So say you have four answers:
* User can click "submit" button if the state of "answer x" is:
A1 = not normal (instead of selected, since you don't know which answers the user will select)
and A2 = not normal
and
A3 = not normal
These conditions will then enable the state of the "submit" button to be active.
You could probably use variable as well, but this seems a good place to start.
Best of luck -
Joe H
Try this out, let me know if this works for you. Many ways to do this but tried to keep simple.
@JeffForrer Thank you so much; I created a variable called threeTries, but couldn't figure out how to get it to track the # of attempts... this is great!
This discussion is closed. You can start a new discussion or contact Articulate Support.