Page 1 of 1

How to only allow numbers to be entered in text box?

Posted: Tue Jun 20, 2017 6:31 pm
by cleavec
I'm creating a data entry form and want to limit users to only be able to enter numbers into a certain field (barcode).

I don't need a message to come up telling the user that they're only allowed to enter numbers, I just want nothing to happen when they press anything other than a number key.

As a bonus, is there a way to stop input, as with the first question, after the user has typed in 5 digits?

Re: How to only allow numbers to be entered in text box?

Posted: Wed Jun 21, 2017 2:18 pm
by Villeroy
viewtopic.php?f=13&t=88873&p=418327&hil ... ld#p418314

Look up "edit mask" and "literal mask" in the F1-help.

Re: How to only allow numbers to be entered in text box?

Posted: Wed Jul 26, 2017 4:20 pm
by zark
i would;

edit/form navigator/ 'choose your field' -- replace with formatted field
properties of formatted field ... VALUE MAX == 99999 .. so it rejects 100000 or more and
formatting [...] -- change to Number , remove decimal places -- it will reject letters when next field is click onto

its basic, so i would prob attach a note to the field for the user