See Text Fields – Telephone number field
The topic you linked is too old and now you can use [tel] and [tel*] form-tags.
Thank you for your response!
The old validator I was using stripped the input down to numbers (if it included dashes) and made sure the phone number was 10 numbers long. Like a min-length. This helped with a certain kind of spam. Is there any way to set up a min length validation?
Thanks!
Alan
Yes, you can use minlength option in [tel] tags. See Max & Min Length Options and Character Count.
Oh duh! Thank you so much. Amazing plugin, amazing support.
That did the trick. You rule.
Anonymous User 14284321
(@anonymized-14284321)
Hello,
I cannot find this information at http://contactform7.com/docs/ – Is it there, or am I just looking in the wrong place?
Thank you.
Are you looking to validate phone numbers?
Anonymous User 14284321
(@anonymized-14284321)
Yes. I can use minlength:10 and maxlength:10 with [tel] but it doesn’t prevent the user typing something like 123-456-78 if they’re not paying attention.
if they’re not paying attention.
Seriously??? I think you mean if YOU are not paying attention. It’s your form correct? YOU control form input, so control it then.
The min/max validation works good enough for me, but you would are correct @Sduibek, minlength and maxlength count all characters, so incorrect phone numbers can make it through.
Hi, the min/max validation is not working for me, when I use minlenght:9 in a phone tag the field disapear.