I have a question with Correct/Incorrect/Try again options. Someone on the Forum was kind enough to help out with IF, THEN, ELSE logic for try again. When you get Try Again and return to layer with NEB, what you typed in remains. I can set the NEB variable to 0 (Zero), but then learner has to delete the value before typing another response. Is there a way to clear out the original answer so the Numeric Entry Box is completely empty?
Thanks for contacting us and sharing what you are experiencing. It sounds like your scenario is a tad different than the other conversations since you are seeing an empty field on an initial visit. The default value for the variables, even if you cannot see them, is zero. I can see where the reset trigger is then subsequently displaying the zero and there is no option for a 'null' field.
Please share your thoughts with our team here so that we can begin tracking and understand your use case.
No, unfortunately not. I had to scrap that simulation and do a video instead. Client really wanted the simulation so if theres a solutjon it would be great.
Is this issue still being worked on? I see that a past version attempted to address the issue, but the Feb 2022 release still shows a 0 and I cannot seem to set it to blank. It will present a blank as long as I use the default variable name created when I insert the numeric entry box. However, as soon as I change it to my VAR name it begins to show 0.
In case it helps anyone... the way I got around this was to make the variable a standard text variable and then use JavaScript to ensure it was a number entered and to manipulate the number as needed. While not ideal or as clean as I would like, it works.
My project is a little game, that in a determinated point the user need to write answers inside a numeric field. If the user writes the wrong answer, he goes to another point in the project that have tips and other exercises for him. After all of this, he comes back to the first quiz to try again, when he comes back the numeric entry fields continued with the wrong answers he had written, if i change the answer to 0, all of the fields stays with the 0, but my objective is when he comes back the fields resets, and stays blank, so... i made this:
1º - Create the numeric entry field in the slide 2º - Now create a text field custom variable 3º - Change the numeric entry field variable, in the triggers screen, for the new text field variable.
(This makes your numeric field with the numeric configuration, receiving only numbers, not text, but the values are sign to a text variable)
4º - Now, create a buttom, that had a trigger to Adjust the new text variable value to 'blank' when he was clicked.
DONE.
Your numeric entry field receives only numbers, and you can make him reset to blank. Hope helps, Below i attached a little test for you know how works.
Any question, just call me in my instagram: _up.level
(Basically preventing unintentional 0 in the results, as well as just reducing extra work for the user to clear it.)
It would still be great to see an actual solution in the program, however - this workaround wouldn't work if you needed to do Storyline math with the resulting Numeric Entry values, since they're now Text variables.
(You could with JavaScript coercion, but not with the built-in math functions.)
62 Replies
Hi John,
Thanks for contacting us and sharing what you are experiencing. It sounds like your scenario is a tad different than the other conversations since you are seeing an empty field on an initial visit. The default value for the variables, even if you cannot see them, is zero. I can see where the reset trigger is then subsequently displaying the zero and there is no option for a 'null' field.
Please share your thoughts with our team here so that we can begin tracking and understand your use case.
Sorry to disturb you. Did you find solution to empty numeric entry field instead of 0?
Peter
No, unfortunately not. I had to scrap that simulation and do a video instead. Client really wanted the simulation so if theres a solutjon it would be great.
...
This post was removed by the author
Is this issue still being worked on? I see that a past version attempted to address the issue, but the Feb 2022 release still shows a 0 and I cannot seem to set it to blank. It will present a blank as long as I use the default variable name created when I insert the numeric entry box. However, as soon as I change it to my VAR name it begins to show 0.
Hi, Bill.
Thank you for reaching out!
We don't have any updates to share for this bug fix yet, but I'll be sure to come back when we have news, as this discussion is linked to the report.
In case it helps anyone... the way I got around this was to make the variable a standard text variable and then use JavaScript to ensure it was a number entered and to manipulate the number as needed. While not ideal or as clean as I would like, it works.
Any solution to avoid the NaN?
this is fixed a long time ago (???) - I have made a screen capturing with the oldest storyline version I could find (Jan 2022)
https://360.articulate.com/review/content/9d3baec9-a491-4531-aad2-20d82f1af555/review
the trick is
- use the automatic generated numeric variable -> empty !!!
- use a manually created numeric variable -> '0' visible
there is a new (???) inner property of the story-file "defaultEmptyIfZero"
here is the inner xml-file (zip) -> story/story.xml
<var g="0ebe1601-02c0-4802-956f-78855731e340" verG="bdcb625c-bdf9-4eae-8ea0-df12b2a677a9" name="NumericEntry1" dataType="num" val="" type="user" propPath="" isRandom="false" randomMin="0" randomMax="0" defaultEmptyIfZero="true" />
<var g="5fc68691-bea7-4591-90f1-4250395017d4" verG="5c39a81a-3fbd-4fbc-9725-6f854843262b" name="test" dataType="num" val="0" type="user" propPath="" isRandom="false" randomMin="0" randomMax="0" defaultEmptyIfZero="false" />
Jürgen
When learner revisit the slide then I want blank numeric entry field not default value 0.
how we can ?
Hi, Shivam.
While there isn't a way to set a numeric variable to blank, you're welcome to submit a feature request directly to our team with your suggestion.
As a workaround, as Bill suggested above, you can set it as a text variable and use Javascript to do the calculations.
hi guys, i've a solution.
For contextualize:
My project is a little game, that in a determinated point the user need to write answers inside a numeric field. If the user writes the wrong answer, he goes to another point in the project that have tips and other exercises for him. After all of this, he comes back to the first quiz to try again, when he comes back the numeric entry fields continued with the wrong answers he had written, if i change the answer to 0, all of the fields stays with the 0, but my objective is when he comes back the fields resets, and stays blank, so... i made this:
1º - Create the numeric entry field in the slide
2º - Now create a text field custom variable
3º - Change the numeric entry field variable, in the triggers screen, for the new text field variable.
(This makes your numeric field with the numeric configuration, receiving only numbers, not text, but the values are sign to a text variable)
4º - Now, create a buttom, that had a trigger to Adjust the new text variable value to 'blank' when he was clicked.
DONE.
Your numeric entry field receives only numbers, and you can make him reset to blank.
Hope helps,
Below i attached a little test for you know how works.
Any question, just call me in my instagram: _up.level
Yuri's solution worked for me. Storyline 360 v. 3.66.28270.0
THANK YOU! Yuri for thinking outside of the box and sharing the solution.
Thanks, Yuri - works great for my use case!
(Basically preventing unintentional 0 in the results, as well as just reducing extra work for the user to clear it.)
It would still be great to see an actual solution in the program, however - this workaround wouldn't work if you needed to do Storyline math with the resulting Numeric Entry values, since they're now Text variables.
(You could with JavaScript coercion, but not with the built-in math functions.)
This is an old thread, but still relevant to me. Any updates on getting this to work with numeric entry fields?
EDIT: I have seen Yuri's solution and got it to work. Ignore me.