Disable Retry Quiz Button after Two Attemps

Nov 21, 2022

Hi,

A have a quiz in my Storyline course.

The quiz has a Retry Quiz button.

If the end-user fails the first attempt, they have one more try. If they fail after the second attempt the Retry Quiz button show as disabled.  They have to go back through the course again (new launch) to make a new attempt (two chances to pass again) at passing the quiz.

I want to disable the Retry Quiz button after two attempts.

I know this involves some combination of using variables and state change, but not sure what type of variable to create, how to set it for two attempts, then link that to the state change.

Thank you for any help you can provide.

1 Reply
Judy Nollet

Since you're only giving the user 2 tries, you can use a T/F variable*, with a default value of False. 

Use a trigger on the Retry button that sets the variable to True.

  • Be sure this trigger appears before the one that jumps to the first question. 

Use a trigger on the Results slide that changes the state of the Retry button to Disabled or Hidden when the timeline starts, with the condition that the variable = True. 

  • It'd be a good idea to also show a message explaining what the user has to do to get another chance to pass. 

* Note: To allow more attempts, use a number variable with a default value of 1. Use a trigger on the Retry button that adds 1 to that variable. Use a trigger on the Results slide that changes the state of the Retry button, with the condition that the variable = the maximum # of attempts.

Here's more info about conditions and variables: