Variables and Quizes
Aug 09, 2017
By
Katie Gibbs
Hi there, I wanted to limit attempts to a final assessment to two and add a review quiz after the 2nd failed attempt and its not working.
Here's what I did:
- I created a variable "Attempts" default = 0
- Added a trigger - add 1.0 to "Attempts" when user click "retry quiz"
- Change state of "retry quiz" to disabled when Attempts > than 0
- Disable Review button until variable Attempts > 0
What am I doing wrong?
3 Replies
Hi Katie,
I've had many a battle with quiz, attempts and reviewing.
Try reordering your triggers - as you have a 'Jump to' before the 'Add 1' on the Retry button, it will jump without adding. Move the 'Add' above the 'Jump to'.
The first two triggers should probably run on timelines start or something similar, if I've understood correctly.
Also your first two triggers are both for greater that 0.00.
While you're building something like this I recommend adding a text box to show the value of the variable. I suspect if you add that to the Results screen you'll see its not changing for 0,
Obviously this is all going off one screenshot but please let me know if it helps?
-Len
Hi Len, thanks so much for the help. I cant share my work due to copywrite issues but I have mocked something up super quick below. I re-ordered but didn't get a positive result.
You are correct, the variable isn't adding.
Hi Katie,
I can see that you’re still struggling with setting up quiz attempts since you reached out here and in this other discussion. I’d love to help! Can you take a look at the file I posted in the other discussion? We can keep the conversation going over there!
This discussion is closed. You can start a new discussion or contact Articulate Support.