Forum Discussion
Storyline 360 Unable to Restrict skipping in a quiz
Hi
I have a Storyline 360 Project which includes a Quiz Bank with 230 questions being randomised.
I followed this discussion
Storyline 360 - Using custom navigation buttons with a quiz review
which included these triggers for this and it worked
and from 2nd slide:
Now, I need to prevent them skipping questions, I have searched and followed the instructions, e.g. using restriction in the player but trying to make my custom Next button to work with a trigger, isnt working.
Please help, thank you in advance.
Thanks
Margaret
MargaretMcCa446: As I understand it, you don't want someone to jump to the next slide via your custom Next button until they have answered the question.
Here are a couple ways to do that
For the trigger on the Next button, add conditions so it will only fire if any of the responses = Selected. In other words, there would be a condition for each response like "if responseA = Selected." The conditions would be connected with "or" so that only 1 condition needs to be met. To avoid confusion, I'd add an Else statement that shows a warning message that tells the user they have to select a response.
or
Set the Initial state of the button to Disabled (or, if you prefer, Hidden). Add triggers that change the button to Normal when the user clicks each response.
7 Replies
- JudyNolletLegend
MargaretMcCa446: As I understand it, you don't want someone to jump to the next slide via your custom Next button until they have answered the question.
Here are a couple ways to do that
For the trigger on the Next button, add conditions so it will only fire if any of the responses = Selected. In other words, there would be a condition for each response like "if responseA = Selected." The conditions would be connected with "or" so that only 1 condition needs to be met. To avoid confusion, I'd add an Else statement that shows a warning message that tells the user they have to select a response.
or
Set the Initial state of the button to Disabled (or, if you prefer, Hidden). Add triggers that change the button to Normal when the user clicks each response.
- MargaretMcCa446Community Member
Thank you Judy, I will give this a try
- MargaretMcCa446Community Member
Hi Judy, I tried the hidden/disabled suggested however, it wouldn't work for me. This project does have a trigger with conditions to only show the incorrect questions. So I am wondering if the triggers are confusing and/or not in the right order?
This is what I have now but still not working as expected.
The first trigger is for only showing incorrect questions.
I appreciate your help as this is the last function required
Kind regards
Margaret
- MargaretMcCa446Community Member
Sorry, this is the correct one:
Thanks in advance,
- JudyNolletLegend
A few notes:
In your "correct one" trigger, the conditions are connected with "and." That means that the trigger won't run unless all of the conditions are met.
When you want a trigger to run when any condition is met, use "or" to connect the conditions.
A bigger issue: You're checking for the Visited state. Any object with a Normal state and a Visited state will automatically change to Visited when clicked. And it will remain in the Visited state unless a trigger changes it.
Question-response buttons should have a Normal state and a Selected state.
For multiple-choice questions (that is, only 1 response is correct), all of the response buttons should be in a button set. That will ensure that only 1 button in the set is in the Selected state at a given time. In other words, selecting a button automatically deselects the other buttons in the set.
For multiple-response questions, the buttons should not be in a button set. In that case, each button will automatically toggle between Normal and Selected when the user clicks it.
Here's more info about how to take advantage of built-in states.
In an earlier reply, you included a screenshot of this trigger:
Those conditions should also use Selected (not Visited).
Also, the "when" in that trigger is problematic. What if the user doesn't select an answer before the timeline ends? In that case, the custom Next button would never change to Normal. And if you extend the timeline, a user who answers quickly might be frustrated waiting for the button to change.
Instead, have the Next button change to Normal when the state of at least one of the response buttons = Selected.
- MargaretMcCa446Community Member
Hi Judy, thank you so much for helping me I don't have good knowledge of triggers with conditions. I updated but still found I could skip questions. I relooked and realised the Next button needed to be disabled first. This worked it disabled but then when I chose an answer it changed the colour (grey when disabled) back to Normal however, I couldn't move forward. I have screenshots below of all the triggers.
Also, you were correct I had previously shared the capture, although not quite right.
Again, thank you very much for your help I really appreciate it.
- JudyNolletLegend
MargaretMcCa446: Your Next button doesn't work because this trigger changes it to Disabled when the user clicks it.
As for this trigger:
Look back at my earlier reply and its example trigger that changes Next to Normal. That trigger doesn't have any conditions to check the state of the buttons. It doesn't need conditions. "When the state of at least one of the buttons is Selected" already tells the program to check the states.
A trigger only needs conditions if you want to specify whether it should run when the "When" happens. In your case, the trigger set to run "When the user clicks Button 1" (i.e., the custom Next button) needs conditions because you don't want it to run if none of the response buttons has been selected.
For reference, I suggest you read the User Guide article about working with triggers. Then review your file to ensure you only have triggers that will do what you want (the Action) at the appropriate time (the When).
Related Content
- 4 months ago
- 5 months ago