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
- GerryWasilukCommunity Member
Are you randomizing the questions? Or using so many questions out of a pool?
- 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.
- GerryWasilukCommunity Member
Okay, thanks!
Try this.
1) Create a new variable. Let's call it varQuestionNumbering. Make it numeric. Initial value of 0.
2) On each question slide (or your master slide for questions), add a trigger that fires when the slide begins. This trigger will adjust the value of varQuestionNumbering by adding 1 to it.
3) On each slide, add a text box. Let's say your quiz has 12 slides total. In the text box add this: Question %varSlideNumbering% of 12.
4) Right before the quiz (good if you quiz has an intro page), add a slide trigger that fires when the slide begins and sets the value of varQuestionNumbering to 0.
5) Then, if you are going to let people re-try the quiz at the end from the results page, add a trigger when the slide begins that resets varSlideNumbering to 0.
If I remember right, Steve Flowers had a variation of this that could put in the number of questions in the quiz (here, 12) rather than hard-coding it in the text box. Steve?
- furkanahmadCommunity Member
hy gerry
can u post a tutorial video for Quiz numbring.
i can not apply variable, i need a video
thanks
furkan
- NancyWoinoskiSuper Hero
I have only tried this with one question pool but I think it should work when using 3 - the trick is that you have to keep one question outside the question and this will always be the first question - the rest of the questions will randomize.
First you have to create two numeric variables.
Call the first one Page and set the initial value to zero
Call the second one PageCount and set the inital value to the number of quiz questions in your test.
One each of your quiz pages - add the following text box in the spot where you want the page number info to display.
Question %Page% of %PageCount%
Now on the very first quiz question (this is the one that sits outside of the question banks) add a slide trigger that sets the value of the variable Page to 1 as follows:
On the rest of the quiz slides, add a trigger that increments the Page variable by 1 as follows:
I think that is about it - you just have to make sure that first single quiz question is included in your results slide.
- KatieHeronCommunity Member
This is a gem! Thank you so much!
- 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 :)