Forum Discussion
Is there a way to add an additional layer to the Success/Failure screen?
So, I have a Success/Failure slide for the assessment. If the learner doesn't pass, they are directed to the Failure layer, and vice versa. What I want to know is if it's possible to redirect them to a different failure layer if they fail twice on the assessment (so that they are forced to review the course).
- JudyNolletSuper Hero
- Create a number variable to track how many times the user fails the quiz.
- Add 1 to that variable when the Results timeline starts with the condition that the score < than passing.
- Also add a trigger to change what the user sees based on the value of the variable.
- This could show an alternate layer if the variable = 2.
- Or you could just hide certain objects on (such as the Retry button) based on the variable.
- You'll also need to track that they reviewed the course, and have triggers that reset the Results slide so they can retry the quiz.
BTW: This post is about tracking attempts for a question, and showing different feedback. But the same idea applies to what you want to do, so you might find it helpful:
- EdwardAgadja170Community Member
So I added the "set value to 0 when timeline starts on this slide" and "add 1 value to Attempts when user clicks (customized) submit button" on each assessment question.
Then, I added a trigger to show a different layer if the learner still fails and attempts=2 as seen in the attached image.
It's not working when I attempted the assessment twice though.
- JudyNolletSuper Hero
Why are you adjusting the variable when the user submits a question?
The variable is for tracking how often the user fails the quiz. Thus, you need a trigger that adds 1 to the variable when the timeline starts on the Results slide if ScorePoints < PassPoints.
Then a trigger after that one can show the appropriate layer based on the value of the variable.
Also, you can set the default value of the variable to 0; no trigger needed for that. The only trigger to set it to 0 should be connected with whatever you use to allow the user to retake the quiz after they've revisited the content.
Troubleshooting tips:
- Think through exactly what you want to happen and when.
- For testing variables, insert a text box with the variable reference. That lets you check whether its value is adjusting as expected. When you're done testing, either hide or delete that text box.
- Remember that triggers run in the order that they appear. And triggers will only run when they appear before any trigger that jumps to another slide.