Pick many - how to only enable submit once 3 objects are selected?
Oct 09, 2014
Hi team!
I am trying to create a pick many quiz, where the learner must pick 3 (out of the 5) options before they can click Submit.
I created a variable that added 1 every time the learner selected an option, and then a condition that the select button was disabled unless the variable was = to 3. However, this does not work if the learner selects an option, and then deselects that option and makes another selection instead.
In this scenario, the 1 added from the first selection does not get removed, therefore, the total number count is at 4, even though there are only 3 objects selected!
I hope this makes sense! Can anyone help with this?
12 Replies
Hi Jacqueline
So are you saying they can pick any 3 of the 5 options and be correct or there are a definite 3 correct picks they can make?
There are 3 correct answers out of the 5, so to answer the question correctly, they must submit the 3 CORRECT options.
However, to submit the question at all (whether they've selected the correct or incorrect options) I'd like it to be mandatory that any 3 are selected.
so for example, if my question was
Select the 3 marsupials:
Kangaroo
Koala
Dolphin
Wombat
Tiger
If the learner only selects 2, they can't click submit. They must select 3 options (whether right or wrong) to be able to submit.
Hi Jacqueline
I've done a couple of examples that might help. In the second one the Submit button is hidden until the count=3
Let me know how you go.
Cheers
Wendy
Thanks for helping out Jacqueline here Wendy
Thanks so much for your help Wendy, but I can't open the file. The error message says it may have been created in a more recent version of storyline?
Hi Jacqueline
sorry I created in SL2, I will re-do in SL1 for you now
Here you go...hope this helps
Let me know if you need anything else.
Cheers
Wendy
Hi Jacqueline
just check on slide 2 (the pick many) that the trigger on the Submit interaction is showing
Submit interaction - pick many when user clicks the submit button if count is equal to 3.00.
I think the trigger didn't save when I posted the .story file.
Amazing! Thanks Wendy.
I see in the first slide that you make the submit button change from disabled to normal when the count = 3.
Can the built in submit button be only visible when the count is 3?
The first slide is a custom slide made up
The second slide is the quiz slide with the default submit button — in this instance I think you would need to 'turn off' the default submit button using the little cog wheel in the bottom right of the slide layers panel (deselect submit) then create your own submit button that has the same triggers as the custom slide.
So...
1. start the custom 'submit' button state = hidden
2. SLIDE trigger --> Change state of submit button to Normal when variable (count) changes on condition (if count =3)
3. SUBMIT BUTTON trigger --> Submit interaction Pick Many when user clicks (submit button) when variable (count) = 3
Hope this makes sense
I don't know if there is a way to put the default 'submit' button into hidden state - am sure there is a superhero out there that may be able to
Hi all,
I just wanted to chime in regards to Wendy's last statement about disabling the submit button - you can't hide it or place it in an "unclickable" state within SL1, but as Wendy showed you can set it up to only submit the interaction once all those elements or conditions have been met.
This discussion is closed. You can start a new discussion or contact Articulate Support.