Phone numbers

Hi,

I have some users that are trying to enter their phone number currently but are being prevented form doing so. I think its because their phone number is 13 characters long and the app is only letting them enter 12. Example, they are in ireland and their phone number has the 3 digit country code +353 Has anyone come across this before?

looking at the phone field options it only wants to accept 2 for the country and 10 for the main number:

Which is why I tend to just use the Any option …

Hi @Chris8- as mentioned by my good friend @LeighBerre96926 using the “Any” option will allow you to add a 13-digit number. However, it opens the door to people adding more digits, or even multiple telephone numbers, into one field. Unfortunately, Knack does not offer any type of custom input mask, such as (9999) 7768-125-125.

However, you can add a regular expression to the field’s validation section that will ensure users can only enter up to a maximum of 13 numbers. Regular expressions are very powerful, as you can control user input at a very granular level. Any AI tool can help generate the expression for you to copy and paste.

1 Like