Error when submitting a numericentry field with a value of 0
Oct 05, 2017
Hi
Hoping someone may be able to shed some light on a problem I have. I have a variable which I calculate during my project which I want to send to the LMS when the user finishes and exits.
I do this by setting a NumericEntry interaction to the value of my variable and submitting it. In my project this is all hidden from the user. This all works perfectly except for if the value of my variable is set to 0 (zero) in which case I get the 'you must complete the question before submitting' message. This causes all sorts of problems because the user can't even see a question, or get to it (by design).
I have attached an example to show the problem. You will see in the example that if you submit the value that has been put there by storyline you will get the message. If you click in the field and type 0 (zero) (or any other value) before submitting, you won't get the message. If on slide one you set the variable to anything other than zero, it also submits OK without displaying the message.
Hope this all makes sense. Any help would be appreciated.
Thanks
Louise
7 Replies
Hi Louise! Thanks for allowing me to take a peek at your file.
If your question slide is set to require an answer and the field is left blank (or has a value of 0), then your learners will see the Invalid Answer message. You can get around this by going to the Question Tools Design tab and changing the Require field to User may skip:
I hope that's helpful!
Hi Alyssa,
Thanks for taking the time to look at the file. I actually do require a value in this field, even if that value is 0. I'm sure 0 is a valid data value for a NumericEntry field. You will see in the test that if you enter 0 manually it is quite happy with this as a value and you don't receive the message. The problem only occurs when 0 is set using a trigger. I would have thought it should behave the same way whether the value has been put their by a trigger, or entered manually, leading me to think it is a bit of a bug. With this in mind I have raised a support ticket.
Thanks again
Louise
Set a trigger to set the value to 0when timeline starts, I believe it is really NaN when the slide starts
Hi Phil. Yes, this is what I am doing bit it doesn't like a zero value when it's set by a trigger although quite happy with a zero when entered manually. Articulate support have taken a look and logged it as a possible bug to investigate. Thanks so much for taking the time to look at it. Louise.
Hey Louise!
Thanks for sharing those details. I located your case, and I've also added this discussion to the bug report.
We'll keep you updated in both places, incase anyone runs into this issue and finds this thread helpful too!
Thank you for the tip on setting to "User may skip." I had this exact problem, sending the value of a variable to LMS using the HOW MANY interaction (so the user never sees the slide.) When the var is zero, the error message appeared; but setting to User may skip fixed the issue.
Happy to hear this discussion helped you out Sally! Thanks for letting us know.
This discussion is closed. You can start a new discussion or contact Articulate Support.