Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!

Numeric patern

Avatar

Former Community Member
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
3 Replies

Avatar

Former Community Member
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

Former Community Member
Thanks Paul for your help!

How javascript will look for the numeric pattern?



Thanks

Avatar

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