Forum Discussion
Reset Numeric Entry Box so no value shows
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?
64 Replies
Thanks for popping in to share and letting us know that this works well for you as well David :)
- SdeBoerCommunity Member
For me it does not work. The field now states "NaN" (not a number).
- PrathibaSrir570Community Member
Any solution to avoid the NaN?
- SnorrskiCommunity Member
I have implemented a temporary workaround in my courses:
instead of the javascript, I use an empty rectangle, styled like the numeric entry field, placed over the entry field, and set to change state to hidden when clicked.
- EdwardHoke-8ec6Community Member
I got the NaN as well...
Hi JC,
Are you using a particular quiz slide, or are you inserting a numeric entry field on a content slide? Is this the file in which you were seeing that problem?
Hi there, everyone. I wanted to update you that I've documented the issue that when you rename a numeric variable, the entry field and the variable reference display a 0 instead of the default blank.
I'm going to have a look at this issue with our team so we can see what needs to be done! I'll keep this discussion updated.
- LaurieLyonsCommunity Member
Hi Crystal, Any updates on this?
Hi Laurie,
No update yet, but we'll post here as soon as we have more info.
If you're able to stop renaming the variables, you shouldn't be running into this challenge.
- MicheleMarti034Community Member
The biggest issue for me is that the 0 does not go away when you enter a number. My slide has a phone and you enter the number you are trying to call. The 0 is there and when you want to put in a number, it does not disappear. So if I needed to enter 44596, it would display as 044596. I checked out the previous fixes and I can see the blank numeric entry, but if there is a script that was used to achieve that, it is not visible. Also, they are older than Storyline 2.
Hello Michele!
Check out this numeric entry field sample I created in Storyline 2. As you can see, the field does not display a 0 when the timeline starts.
It sounds like your numeric entry field is behaving differently, though. Would you mind sharing the slide with me?
- MaryGoemanRealoCommunity Member
Your link didn't work
- SheetalDeopu194Community Member
Any update on this issue? I also facing same problem.
- JackSmith-6d95cCommunity Member
Thanks for sharing, Jack! Feel free to add you .story file, too, so folks can see the setup.
A quick update on the
NumericEntry
variable showing 0 after being renamed in Storyline 360. In the latest version, Update 23, this behavior happens whenNumericEntry1
,NumericEntry2
, and subsequent numeric entry variables are renamed. If you rename the firstNumericEntry
, you will not see the field default to 0.The workaround is to add numeric entry fields one at a time and rename the
NumericEntry
variable each time. I hope that helps you to keep the fields looking consistent!- MaryGoemanRealoCommunity Member
Could you post the java for the reset button please?
Related Content
- 12 months ago
- 15 days ago
- 5 months ago
- 5 months ago
- 11 months ago