Question Numbering
Jan 09, 2014
By
Amy Stock
So I found a tutorial to create a variable to display what number question the user is on in the top right of the slide.
Unfortunately when the user goes back to review the question the variable continues to '+1' on the Question Number.
Is there another way I can create a page number? Or do I need to add another variable to stop the numbering happening in Review, and what would that be?
Thanks!
5 Replies
Hi Amy,
You could set a trigger on the review button that would reset the "Question number" variable when clicked. If so, you'll just want to make sure the trigger order has this one first, before jumping to review the slides.
Excellent! That worked a treat!
Now... one more teeny tiny issue.
When the user is reviewing said slides if they click the Previous button the questions still add one, what trigger do I need to add to stop this?
Hi Amy,
You'll need to set up something similar to this scenario:
1. Add trigger to "Review Quiz" to reset variable to 0. Since you have your variable set to add +1 at the beginning of the timeline for each slide, the count will be the same as you had before resetting the variable.
2. At the master slide level add trigger to next button to add +1 and to previous to substract -2. You may also want to set a condition that it should subtract If QuestionNumber greater than 1 (otherwise the number will keep going down to 0 and - 0).
Hope that helps!
Hi Ashley,
Fantastic.
But... Now when I review the slides and click the next button it +2 making the numbers wrong. I suppose the mixture of the Add 1 Master Slide Trigger and the individual Slide Triggers means it adds two in Review mode.
Do you have an idea on how to get around this?
Hi Amy,
What do you have set up as the slide trigger that is adding 1? If you've connected it to the "submit" button, that shouldn't be available on the Quiz review and therefore the only trigger adding 1 is associated with the next button that'll appear on the review. If you've set up the individual trigger on the slides in a different way, such as when the timeline of the slide starts, you may want to look at setting a condition based on if the quiz is in review mode (set up a variable for ReviewMode that is changed to "true" when the user clicks the review button) that the trigger wouldn't fire. That, or remove the master slide trigger for the next button and let it rely on the slide timeline starts trigger. You'll still need the previous trigger though.
This discussion is closed. You can start a new discussion or contact Articulate Support.