Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

Numeric fields

scotth1123
Level 1
Level 1

When I type 0398762 in a numeric field, it drops the "0".  I need to keep the "0".  How do I do that?

1 Reply
Magus069
Level 10
Level 10

To keep a 0 at first position you need to use a textfield, not a numeric field... unless there is a way to bypass the numeric field formatting

within a textfield to make sure you only have numbers, you can use the method isNaN()... is Not a Number

in the exit event of the textfield you would have something like this :

Hope this help!