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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Remove minimum digits requirement in phone number field

Avatar

Level 1

My company has just launched a site and is using the telephone number field in one of the forms that can be submitted to us. The site is focused on APAC countries and some of the phone numbers there have only seven or eight digits total. When a user tries to put in one of those numbers, they get an error code that they have to have 10 numbers. My developers tell me the 10-number minimum is baked into AEM, but I'm wondering if there's a way to override that setting so that there is no minimum to the numbers you can post in the telephone number field.

 

Thank you in advance for any information you can share!

1 Accepted Solution

Avatar

Correct answer by
Employee

You can easily change the number pattern to Internation/UK or a custom pattern using your own regular expression 

workflowuser_0-1666293021321.png

 

View solution in original post

2 Replies

Avatar

Correct answer by
Employee

You can easily change the number pattern to Internation/UK or a custom pattern using your own regular expression 

workflowuser_0-1666293021321.png

 

Avatar

Employee Advisor

@MarkECis in phone field the regex is applied by default, you can change it anytime to anything based on your business requirement. You can put your own regex as well

 

Mayank_Gandhi_0-1666713523165.png