Numeric Text Entry Quiz Question - On Retry = NaN

Sep 03, 2013

I have a couple of quiz questions that are numeric text entry - the answer will be correct if they answer between 400-600, for example.  When a learner clicks to retry quiz, which they are required to do if they fail, the value on these questions is set to "NaN" instead of back to the default "0".  Any ideas on how to reset it back to it's initial state instead of showing "NaN"?

2 Replies
Chrissy Chamberlain

I found a workaround, but I'm still hoping you'll find a permanent fix. as it may not work in all use cases.  I created a slide trigger to set that text entry variable to 0 when timeline starts on condition that variable QuizResults.ScorePoints is less then variable QuizResults.PassPoints (in other words, the user fails the Quiz and has to retry).

I put the condition so their  answer will remain intact when they review the quiz or revisit that slide via the menu.  This only works because I'm requiring users to re-take the quiz until they pass, meaning they would never be revisiting the slide with failed quiz results.

Ashley Terwilliger-Pollard

Hi Chrissy,

I haven't seen the NaN behavior myself, and I think that the solution you have about ensuring it's reset to 0 is a good idea. I did find this thread where another user experienced something similar, and created a bit more involved workaround to ensure that NaN wouldn't appear in the variable field - also it seems to only appear with numeric entry, not just text?  Additionally, a few of the replies in that thread indicated they submitted it as a Feature request, so if you'd like to join them you can do so here. 

This discussion is closed. You can start a new discussion or contact Articulate Support.