Expand my Community achievements bar.

Numeric fields

Avatar

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

Avatar

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!