Forum Discussion
Numbering Quiz Questions in Storyline
Hey, Everyone,
We have a final assessment at the end of our course and I am wondering if it is possible to number the quiz questions so the person knows where they are at and how many questions they have left to go?
Thank you,
Kate
- KateLeifheitCommunity Member
I am randomizing the questions from three different pools, but if it's only possible to add the count if you use one pool then I would be willing to use just one.
- NancyWoinoskiSuper Hero
Hi Gerry, great minds. In my example I show how to include the total page count as a variable so that you only have to change it in one place if you add or remove questions.
- GerryWasilukCommunity Member
Cool, Nancy! I had forgotten about doing that. Thanks!
- RogerCorpasCommunity Member
Thank you Nancy and Gerry for the answer and to Kate for asking, this is exactly what I was looking for...
- HeinrichBartieCommunity Member
Thanks guys!
Your method worked perfectly!
- KateLeifheitCommunity Member
This is great! But when I click the "Review Quiz" button the number goes to 31 and stays there because the buttons switch to "back" and "next" and not "submit". Does this mean I have to add a back and next button on every slide and a trigger to each of them? Or is there another way to solve this so that when it goes into "review" mode it will add and subtract one with back and next. I couldn't figure out how to add variables to the back and next buttons during review mode since it is not available on the storyboard.
Thank you!!
- RogerCorpasCommunity Member
Hi Kate,
I used a combination of Gerry and Nancy's solution.
I encountered the same problem you have and solved it this way:
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. I am seeing a delay in the count but it does adjust itself after a quick moment.
So far, it seems to work. If someone has a more elegant/efficient solution, I would love to hear it.
Please let me know if this is not clear.
Good luck!
- philipsiwinskiCommunity Member
Hi Roger, how did you manage to deal with the short delay in the count ?
Thank you :)
- RogerCorpasCommunity Member
Yaki...your idea is simple and would work too. I like it.
Brett...I did something like you describe.
My reply was also about what happens when you click the back button while you are reviewing. Let's say...you go to question 1 after selecting the review button...then you go to question 1, 2, 3 but then you want to go back.
I am not sure if you had this same problem but I could only make it work going back in the way I described.
If you have any thoughts about this, I would be happy to give them a try.
- HeinrichBartieCommunity Member
I share Roger's frustration here. The review section is what seems to throw this concept for a loop. I didnt even consider resetting the variable back to 0 when the review page launches, so that will take care of that issue for me, thanks guys.
The problem I'm sitting with like Roger is when you start using the back button while in review. Because the trigger is based on "when timeline starts" you end up with the question count variable being fired again when you use the back button in the review pages. So you ultimately end up with something that looks like "Question 43 of 30".
I've tried to set the variable to update +1 when the user clicks the next button, and subtract 1 when they click the back button, but this caused even more weird behaviour. I would end up with a situation where the count would not update at all (so it would remain on zero) and would only start incrementing the variable when I reached the last question in storyline preview mode. When you're previewing say 10 questions in a quiz, only once i get to question 10, and then click the next nav button the variable would start incrementing. At this stage in the preview mode there in no next question to go to, so the next button doesnt lead anywhere, but the variable starts increasing! Very strange indeed.
I have not tried this by publishing the quiz properly, so i'm not sure if this might just be a glitch in the preview mode. I will give it a try sometime and let you guys know.
If anyone finds a nice solution, share it please
- RogerCorpasCommunity Member
Hi Heinrich,
Try substracting 2 when you click the back button instead of one and it should work. There must be a better way, though.
Please let us know if you find one....