Getting NaN on quiz retry with question bank
Apr 10, 2019
By
Jane Kuo
I have a course that is divided into sections and for each section there is a quiz where we need to get an 80% to pass and there will be 3 attempts at the quiz. I put the questions in a question bank where 5 questions will be picked randomly for each attempt.
The problem I'm having is that when I click on the Retry Quiz button, the %Results.ScorePercent% variable shows as NaN when it should be 0. It was working fine when I didn't have the quiz questions in a bank.
How do I get the quiz to work where the results score resets to 0 when the user tries the quiz again and another set of 5 questions are drawn for them to answer?
Thanks.
6 Replies
Hi there, Jane. The score should always reset to 0 when retrying a quiz, but we have documented some situations where it's showing NaN instead. Can you help me with a few more details on your setup?
We'll work out some next steps!
Hi Crystal,
Thanks for your reply.
in answer to your questions, I only have 1 question bank in my course. The quiz is set up where the user has 3 attempts at the quiz. When they click on the Retry Quiz button, it takes them back to the beginning of the quiz. This file was created in Storyline 360.
Thanks for these helpful details, Jane!
A few more clarifying questions to help us narrow down the source of that NaN text:
Appreciate you working through this oddity with us. If there's anything else I can help answer, I'll be here!
Hi Katie,
The %Results.ScorePercent% variable displays NaN for a second before going back to the 1st question in the quiz on the retry, It's long enough that the learner would see it when they retry the quiz.
Hi again, Jane. Appreciate you confirming that key piece!
That behavior is indeed a match to the possible bug that our team is investigating. Here's a glimpse into how we prioritize and tackle bugs!
Thanks for letting us know this is impacting your work, and I'll keep this discussion updated with any new information!
Hi, Jane.
We appreciate your patience while our team investigated this.
I am happy to share some great news! We fixed the issue you reported where:
Results.ScorePercent shows as "Nan" for a split second when Retrying
Be sure to install the latest Storyline 360 update (Build 3.49.24347.0) to take advantage of all the recent features and fixes.
If the problem happens again, please let us know, or you can always work directly with our support engineers here.