I have a standard series of questions I have compiled into a question bank for an assessment. The test draws 10 random questions from a question bank of 25 questions.
What I would like to do is be able to show the user the question number (1/10, 2/10, etc).
I'm trying to do the same and I followed your instructions but for some reason it keeps adding 1 each time something is clicked. I do have it set so that it shows the feedback (correct or incorrect) and when they click on that it adds up another 1 to the count? Any idea how I can get it to not add this?
Hi, Gemma -- Thanks for reaching out here, and as this thread is a bit dated, some of the participants may no longer be subscribed. If you'd like to reach an individual directly, you are welcome to use the 'Contact Me' link on their profile page.
Or, you could also take a look at the discussion over here for some additional ideas you can try, and it never hurts to share your file if you'd like additional feedback.
We appreciate the update, Gemma, and you are welcome to share your file if you'd like to share the solution you discovered here, as it could benefit others who come across this topic in the future. :)
Please note that my triggers are in the slide master.
I created a Variable - as indicated above.
Then added trigger to adjust QuestionCounter by adding value 1 when timeline starts.
Then I added another trigger in the results page that set QuestionCounter equal to 0 when timeline starts to reset the counter should they retry the quiz
The test still have an bug. In review page, when you at question 2 and your click previous button. The number will be increase to 3 which is not correct, it should be display as 1. anyone know how to amend this?
I did place a trigger in front of the question that draw from question. I want to put inside the master slide but there no previous or next button to select. It just have to submit button
I thought you were using the example above which has the variables on the master slide? Perhaps if you can share your .story file someone may be able to help you
Are you able to share the .story file that you're working on here with us? If so you can upload it using the "Add Attachment" button at the bottom of the reply window.
Then staff and community members can take a look at exactly what you've set up in your triggers!
The counter I have show at the bottom right hand side.
The counter work when doing quiz but in Review. When you view a few page via next buttom , it still work. but when you click on previous the page does not work properly. All code I have insert in the master slide.
This is where the counter gets a bit complicated...
What you have set up is to add to the variable when the timeline starts and add to it again when the user clicks next - so in essence, going from slide 1 to 2, would actually raise the count to three instead of two.
Similarly clicking the previous button would subtract one, but the timeline is going to start again on a revisit and add one again. Cancelling each other out.
Gemma's example didn't account for using the previous/next buttons without resetting the count and even then you can easily recreate the problem. What about instead adding to the count variable when the user clicks submit? That way it's only adjusted when the user has clicked submit the first time around - and the previous button could still subtract from it. You'd need to set the initial value of the variable to 1 to account for the first question and set the prev button on the results slide to also subtract one (which I don't see set up right now).
You can see why adding a counter to a question bank has a few different methods - as it'll depend on what else you're going to add! So a few ideas to play around with.
If you add the count variable when the user clicks sumbit, then when they are reviewing the questions and they only have the previous and next button there will be no incrementing of the number. Except for the subtraction that is happening on the previous button.
I'm having a similar issue as you. It seems that the previous button only wants to do one of the things it's asked to do, instead of all of them. I can get the previous button to increment the number OR actually work as a previous button. Which ever one is last in the action panel is the only one that works.
Adding previous buttons to quiz slides in a Question Bank caused a scoring bug for me (on retakes), so my solution right now would be: remove Previous buttons from all quiz questions in a Question Bank.
OMG, duh....(epiphany moment) If you are adding one every time you enter a page you have to take away two when you click previous. The one that was added when you entered the page, and the one you want to deincrement your number.
30 Replies
Hello Thomas,
To add question counter in question bank. Follow steps below:
Let me know if you still have any trouble.
Hi there,
I'm trying to do the same and I followed your instructions but for some reason it keeps adding 1 each time something is clicked. I do have it set so that it shows the feedback (correct or incorrect) and when they click on that it adds up another 1 to the count? Any idea how I can get it to not add this?
Thanks
Gemma
Hi, Gemma -- Thanks for reaching out here, and as this thread is a bit dated, some of the participants may no longer be subscribed. If you'd like to reach an individual directly, you are welcome to use the 'Contact Me' link on their profile page.
Or, you could also take a look at the discussion over here for some additional ideas you can try, and it never hurts to share your file if you'd like additional feedback.
Thanks Christie. I was able to find someone that had added in a file example so I was able to copy their variable....
Thanks
Gemma
We appreciate the update, Gemma, and you are welcome to share your file if you'd like to share the solution you discovered here, as it could benefit others who come across this topic in the future. :)
Oh yeah definitely.
Here is the file:
Please note that my triggers are in the slide master.
I created a Variable - as indicated above.
Then added trigger to adjust QuestionCounter by adding value 1 when timeline starts.
Then I added another trigger in the results page that set QuestionCounter equal to 0 when timeline starts to reset the counter should they retry the quiz
Thanks for sharing... this post saved the day.
Love when the older posts are still able to do that Amma :) Thanks for popping in to share.
This post was removed by the author
This post was removed by the author
The test still have an bug. In review page, when you at question 2 and your click previous button. The number will be increase to 3 which is not correct, it should be display as 1. anyone know how to amend this?
Hi Maddy
you'll need to have a trigger on the Prev button that decrements the number.
I did place a trigger in front of the question that draw from question. I want to put inside the master slide but there no previous or next button to select. It just have to submit button
I thought you were using the example above which has the variables on the master slide? Perhaps if you can share your .story file someone may be able to help you
Even I use the above put in the subtract trigger to previous button. The number will remain..
Hi Maddy,
Are you able to share the .story file that you're working on here with us? If so you can upload it using the "Add Attachment" button at the bottom of the reply window.
Then staff and community members can take a look at exactly what you've set up in your triggers!
The counter I have show at the bottom right hand side.
The counter work when doing quiz but in Review. When you view a few page via next buttom , it still work. but when you click on previous the page does not work properly. All code I have insert in the master slide.
Hi Maddy,
This is where the counter gets a bit complicated...
What you have set up is to add to the variable when the timeline starts and add to it again when the user clicks next - so in essence, going from slide 1 to 2, would actually raise the count to three instead of two.
Similarly clicking the previous button would subtract one, but the timeline is going to start again on a revisit and add one again. Cancelling each other out.
Gemma's example didn't account for using the previous/next buttons without resetting the count and even then you can easily recreate the problem. What about instead adding to the count variable when the user clicks submit? That way it's only adjusted when the user has clicked submit the first time around - and the previous button could still subtract from it. You'd need to set the initial value of the variable to 1 to account for the first question and set the prev button on the results slide to also subtract one (which I don't see set up right now).
You can see why adding a counter to a question bank has a few different methods - as it'll depend on what else you're going to add! So a few ideas to play around with.
If you add the count variable when the user clicks sumbit, then when they are reviewing the questions and they only have the previous and next button there will be no incrementing of the number. Except for the subtraction that is happening on the previous button.
I'm having a similar issue as you. It seems that the previous button only wants to do one of the things it's asked to do, instead of all of them. I can get the previous button to increment the number OR actually work as a previous button. Which ever one is last in the action panel is the only one that works.
Adding previous buttons to quiz slides in a Question Bank caused a scoring bug for me (on retakes), so my solution right now would be: remove Previous buttons from all quiz questions in a Question Bank.
OMG, duh....(epiphany moment) If you are adding one every time you enter a page you have to take away two when you click previous. The one that was added when you entered the page, and the one you want to deincrement your number.
If you allow the learner to retake the quiz, and you have previous buttons in your quiz, make sure they are still able to pass on retakes of the quiz.
Here's your file, working.
Ok, thanks for the tip! I'll be sure to check that.
This discussion is closed. You can start a new discussion or contact Articulate Support.