Numeric patern

Avatar

19-12-2008

Is it posible into a numeric field, user to alow enter only 3 digits without using the combo future and also how to validate in case user enter less or more than 3 digits?



Thanks

Replies

Avatar

Avatar

pguerett

Avatar

pguerett

pguerett

19-12-2008

What is the combo future?



You can certainly restrict the field length to 3 chars. Using Validation Patterns you can ensure that you have 3 digits in the field or you can check the length of the field programatically by using javascript then display an appropriate message.

Avatar

19-12-2008

Thanks Paul for your help!

How javascript will look for the numeric pattern?



Thanks

Avatar

Avatar

pguerett

Avatar

pguerett

pguerett

19-12-2008

You could use a regular expression (RegEXP) to check for a numeric pattern as well you coudl check the length.