This topic is locked

Minimum number of characters (numbers) in the phone field

8/23/2022 6:41:12 AM
PHPRunner General questions
A
alfonso authorDevClub member

In Spain the telephone number has 9 digits. How can I force all nine numbers to be typed?
I can put as maximum value 9, but if someone writes 3 numbers it does not show any error
Thanks

fhumanes 8/25/2022

Alfonso,

I have been waiting to see if someone wanted to constitute you, but seeing that nobody has written something to you, I have encouraged myself to answer.

There is a plugin for the entry of telephone numbers. Free Plugins

In addition, in a standard way you have masks and regular expressions (these are very potent and there are many examples on the Internet).

img alt

Expresión Regular

I hope I have helped you in your problem.

Cheers,
fernando