Forum Discussion
Storyline 360 Unable to Restrict skipping in a quiz
- 1 month ago
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.
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
- 5 months ago
- 2 months ago
- 6 months ago