When you enable the Retry Quiz button on a result slide, learners will have an unlimited number of attempts to take the quiz.
But what if you want to limit the number of attempts? No problem. Just use a variable to track the number of attempts. Here’s one way you can accomplish this:
- Enable the Retry Quiz button on the result slide. See this user guide for details.
Add a number variable to track the number of quiz attempts, and set the initial value to zero (0). For the sake of this tutorial, we'll refer to this variable as the Attempts variable.
- On the result slide, add a trigger to the Retry Quiz button that adds a value of 1 to the Attempts variable when learners click it, then move the trigger up so it's the first trigger listed for the Retry Quiz button. To learn how to add triggers, see this user guide.
- Add a slide trigger to the result slide that changes the state of the Retry Quiz button to Disabled when the timeline starts if the Attempts variable is equal to the maximum number of retries you want to allow. If you need help adding conditions to triggers, see this user guide.
That’s it! If you want to make the Disabled state of the Retry Quiz button more noticeable or descriptive, you can edit the state. For example, you might change the color of the button or change the text to “No more attempts.”