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....
Hi Jyothi,
You could add a trigger for the start of the timeline to set the value of NumericEntry to (blank) and that would stop the 0 from appearing automatically.
- PhilMayorSuper Hero
Unfortunately you cannot set a numeric entry field to blank, this only works for a text entry field.
My apologies Jyothi - Phil is correct, and I wasn't thinking correctly when I wrote that. Since you can't remove the initial zero within the numeric entry box you're welcome to submit a feature request about changing that behavior.
- ravindrasinghCommunity Member
Yes, we can remove default value "0" from it.
I hope it will help you.
- JaipalNegiCommunity Member
Nice Ravindra,
Got it what I want.
Thank you very much.
- PhilMayorSuper Hero
Nice
- rehanarshad1Community Member
Great work
- manishsaraswatCommunity Member
hi! friends
it very simple to remove default value "0" in numerical entry.
- take a numerical entry.
- make text variable type as" my".
- double click on that numerical entry's trigger.
- assigned the text variable. simple.
Good think is this---: after assigning text variable, numerical entry take only numerical entry instead of text..
i think, its helpful for you.
- RebeccaFleischCCommunity Member
Ravindra,
Welcome to the community and THANK YOU very much. Sweet!
- JenniferRitterCommunity Member
I ran into this after I'd already placed all of my numeric entry fields in a course. There is also a way to get the default "0"s to go away from existing numeric entry fields without having to "Delete" and then "Ctrl Z" them.
I think I may be re-stating manish's solution, but basically:
1) Double click the numeric entry field's trigger in the trigger panel to pull up the variable assignment pop up
2) Use the dropdown and change the field's variable to "unassigned"
3) Create a new Text variable, name it whatever you want, and leave the default value for it blank
4) Double click the entry field's trigger in the trigger panel again to go back to the variable assignment pop up
5) Assign the new Text variable to the numeric entry field
6) Unfortunately, you have to re-do whatever triggers you had in place that referenced the original Number variable. I also recommend going back into your project variables list and deleting the old (now unused) Number variables, to keep the project file tidy.
- MicheleMarti034Community Member
This actually worked for me. Thanks for breaking it down.
Thanks for popping in to share Jennifer :) Never too late to share a good solution that works for you.