• Hi,
    I am using the Contact Form 7 plugin. I cannot find validation for the phone field and the postal code field. The phone field must contain 10 digits but I cannot set it anywhere. Same for postal code: must have this form 1111AA. How can I set these validations in order to have the form work properly?

    Regards,
    Marcel

Viewing 1 replies (of 1 total)
  • For the telephone number you could specify minlength:10 maxlength:10 in the shortcode (if you want people to be able to add a space in between the numbers adjust the lengths accordingly)

    With regard to the postal code i’d just do the same. There may be more complex answers which will define alpha or numeric validation though.

    • This reply was modified 7 years, 9 months ago by fonefixer.
Viewing 1 replies (of 1 total)
  • The topic ‘validation on phone + postal code’ is closed to new replies.