Forum Discussion
How to remove an initial value (0) from a "Numeric Entry" field
Hello,
Can anyone know, how to remove an initial value i.e. 0 from a "Numeric Entry" field?
Thanks in advance....
74 Replies
- TracyParishSuper Hero
@Wendy
I see the same thing in SL360, the number variable entries appear with a 0. The only thing is when you go to enter in a number (eg. 205) the entry now appears as 0205. That zero does not disappear when you enter in your number (it just stays at the beginning). As a user (entering in the number) if I delete the 0 before typing in my number the entry box now displays the "Hint text" and if I enter my number all looks the way I wish it did from the very beginning.
I'm a bit stunned there are so many complex issues/fixes to address this problem. Why don't they just function/appear like text variable inputs? :) - JoanneChenSuper Hero
I do not have a 0 shown in the numeric entry field when creating one whether in SL2 or SL360. But once I click "OK" in the variable editing pane, the initail variable number will show even though I do not make any edit. Here is the Peek video for the test.
- TreyMcNabb-f8dbCommunity Member
Thanks for the video Joanne! This helped me with the workaround.
If you DON'T double click the name in the variable list, single click to change the name, then it stays blank. This also allows you to add an instruction like 'Add Q1 number here' in the box. It's only when you enter the variable assignment screen that pesky '0' shows. (I'm on SL3, but same result).
@Ashley - thanks for letting us know Articulate is working on fixing this!
- TaraIngram932Community Member
Everytime I try this, leaving the default value blank, when I click on ok it goess back to zero on its own. Please help!
Hi Tara,
You may want to share what you've set up so far so that folks in the ELH community can take a look and offer ideas! Upload your .story file here using the Add Attachment button at the bottom of the forum page.
- WarrenZimmer726Community Member
- WarrenZimmer726Community Member
OK, I looked at the latest solution via Mr. Rubin's link, and it didn't clear the text fields on focus like I was hoping. Still troubleshooting, thank you for the effort.
Hi Warren,
Sounds like you may be using the JavaScript solution shared in this thread?
You may want to share your .story file so that someone can take a look and help you out with your design.
- ShannonTrine-4dCommunity Member
I'm having the same issues and I've tried all of the above. The javascript doesn't appear to work for me, it gives the NaN message.
The strangest thing is slide 1 shows the "0" and slide 2 which has the same numeric entry type shows blank. I've been having a hard time trying to figure out what happened and why they are different on each slide.
Any insights?
- JenniferShafleyCommunity Member
I am having a similar issue. I have two specific issues I am trying to solve: 1) I don't want the zeros to appear (I have not renamed the variables) and 2) I want these typed numeric values to reset when a user clicks a button. I have attached a file with my current efforts. You will see that I have added triggers to reset these values and I have tried adding a duplicate slide so that you go back and forth in an attempt to trigger the reset when revisit. None of these have worked for me. I'd like to avoid javascript fix if possible.
Hi Jennifer,
Thanks for sharing your file.
First, I noticed you had some conflicting triggers to reset the slides. It was set to jump to slide 1.1 and 1.2 - and therefore both triggers weren't executing leaving the user stuck on slide 1.1:
I was able to remove the trigger for Slide 1.1 on that slide, and the same for Slide 1.2 and then it started to work normally.
I also saw the reset would only occur on the first jump to the new slide. One thought is you could add a trigger to set the value to 0 when the timeline starts, and that'll reset it each time you visit the slide.
Also, the 0 appears when you change the trigger from Set NumericEntry10 equal to the typed value when the control loses focus to Set CreamValue equal to the typed value when the Control loses focus. That's where the variable name has been adjusted and what you'll want to look at not changing.
I made these changes (to the jump to slide triggers and the variable reset only on SugVal entry) on the attached file for you to take a look at!
- JenniferShafleyCommunity Member
I made your suggested edits and added the set value to 0 when timeline starts, but this still does not clear out those fields or reset the slide to the initial state. Can you please advise?
Hi Jennifer!
There seem to be two different issues going on here, so let's tackle them one at a time:
-
The initial value of the text entry field is 0 and not blank: This is happening because there is a bug in Storyline 360 where when you rename a numeric variable, the entry field and the variable reference display a 0 instead of the default blank.
For example, in your file, the variable NumericEntry was renamed to SugVal. Now that the variable has been renamed, the default value will display as a 0.
Our team is looking into this bug, and we'll let you know as soon as it is resolved. -
The slide would not reset back to its initial state: This was happening because you were mixing your variable references. In the trigger panel, I saw the first numeric entry referenced as NumericEntry and as SugVal in another instance.
To fix this, I made sure all of the variable references were consistent using the new names, like SugVal.
In this updated file, you'll see that the numeric entry fields now reset to 0 when you click the Reset button. Please take a look, and let me know if it's working for you!
-
The initial value of the text entry field is 0 and not blank: This is happening because there is a bug in Storyline 360 where when you rename a numeric variable, the entry field and the variable reference display a 0 instead of the default blank.
Related Content
- 11 months ago