Forum Discussion
How to Number Quiz Questions Randomly Generated from a Quiz Bank
Hi Christine,
The variable that serves as the counter (in your case the “pageCount” variable) should not be displayed at all. You had it on the slide master for all layouts. I removed it and just added a trigger on the quiz slide master layout to have it increment when the user clicks the submit button and only if the quiz_QX variables (which I created for each question) equal zero.
Keep in mind that the counter starts at 1. If you do display it, it will go to N + 1, N being your total number of quiz questions set to display (e.g.. 5), but that does not mean you are getting N + 1 questions.
I made the modifications to your sample and it seems to work – see v2. The solution is the same minus the Retake variables and button. It still requires a variable for each question and that variable will be assigned the counter variable so long the condition exist (as long as, it does not have a page number assigned already) and once the learner gets to the results page to Review, the counter sets back to 1 (see Trigger on the Results page). It does not increment during the Review because it's set to increment only when the Submit button is clicked. And the “quiz_QX” variables are not overridden during the Review because they already have a page number. Disclaimer - this works, so long the user Exits the course after the Quiz OR so long they don’t jump out of the quiz via the TOC once they get started. A simple note as you have at the beginning works well. Hope this helps.
Related Content
- 11 months ago