Title: validation on phone + postal code
Last modified: June 4, 2017

---

# validation on phone + postal code

 *  [mahaan1](https://wordpress.org/support/users/mahaan1/)
 * (@mahaan1)
 * [9 years ago](https://wordpress.org/support/topic/validation-on-phone-postal-code/)
 * 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)

 *  [fonefixer](https://wordpress.org/support/users/fonefixer/)
 * (@fonefixer)
 * [9 years ago](https://wordpress.org/support/topic/validation-on-phone-postal-code/#post-9195606)
 * 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 9 years ago by [fonefixer](https://wordpress.org/support/users/fonefixer/).

Viewing 1 replies (of 1 total)

The topic ‘validation on phone + postal code’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [phone](https://wordpress.org/support/topic-tag/phone/)
 * [Postal Code](https://wordpress.org/support/topic-tag/postal-code/)
 * [validation](https://wordpress.org/support/topic-tag/validation/)

 * 1 reply
 * 2 participants
 * Last reply from: [fonefixer](https://wordpress.org/support/users/fonefixer/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/validation-on-phone-postal-code/#post-9195606)
 * Status: not resolved