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?
- 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?
- MaryGoemanRealoCommunity Member
I inserted in the numeric entries one by one and renamed them like you said. It still shows a 0 when I rename it. Is there java that can fix this?
Hi All,
A quick update to let you know we've released a fix for this issue where Numeric-entry fields displayed default values of zero after renaming their underlying variables. They should remain blank until learners enter values. You'll find that fix available in the latest update Storyline 360, build 3.28.18944.0.
To install the update, launch the Articulate 360 desktop app on your computer and click the Update button for Storyline - you'll find more details here.
Please let us know if you have any questions, either here or by reaching out to our Support Engineers directly.
- AdrianMansardCommunity Member
Another workaround is to use text variables, they can be configured to whatever default values you'd like, including blank.
Bonus: Storyline can test Text variables for blank, it can not check numeric variables for NULL just zero.
- MadhuLakshmananCommunity Member
Was this problem ever resolved? I have many numeric entry fields created but 0 appears in them to the user. I would like it to be blank so that the user is not required to delete something to begin with. I am using Storyline 360. I have looked at all the other threads pertaining to this and don't see any sustainable workaround yet. There is no change after the May 2020 update as mentioned in one of the threads.
- VinceScomaCommunity Member
Hi Madhu,
Thank you for letting us know! There was a fixed release for this in update 28 for Storyline 360, but I am happy to help take a closer look!
I created a sample file using the latest build of Storyline 360 (Build 3.40.22208.0) to see if I could recreate the issue, however, I am not seeing a 0 for my numeric entry field:
May I ask if you could share a screen recording of what you see in your course? That would help out greatly as we dive deeper!
- MadhuLakshmananCommunity Member
[image: image.png]
A video isn't necessary really because the zero shows up as soon as it's
previewed or published. I have also raised a ticket and I've been told it's
been looked into.
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.
- BillOsborn-26d1Community Member
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.
- MariaCSStaff
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.
- Jürgen_Schoene_Community Member
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
- ShivamSharma-58Community Member
When learner revisit the slide then I want blank numeric entry field not default value 0.
how we can ?
- BillOsborn-26d1Community Member
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.