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

Avatar

Avatar
Level 1
scotth1123
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
scotth1123
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
scotth1123
Level 1

14-01-2016

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,078 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,078 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile
Magus069
MVP

14-01-2016

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!