Title: Input field custom validation question
Last modified: May 28, 2021

---

# Input field custom validation question

 *  Resolved [balazskissicell](https://wordpress.org/support/users/balazskissicell/)
 * (@balazskissicell)
 * [5 years ago](https://wordpress.org/support/topic/input-field-custom-validation-question/)
 * Is there a way to validate if two input fields content are identical?
 * In my form I would like to include two fields:
 * email
    email again
 * [https://imgur.com/b5a2vv1](https://imgur.com/b5a2vv1)
 * and validate if the two fields content are the same, before allowing submit. 
   I whish to prevent the user from submitting, if the two email addresses differ.
 * Is there any to enforce this validation? Thank you for your time in advance.
    -  This topic was modified 5 years ago by [balazskissicell](https://wordpress.org/support/users/balazskissicell/).

Viewing 1 replies (of 1 total)

 *  Thread Starter [balazskissicell](https://wordpress.org/support/users/balazskissicell/)
 * (@balazskissicell)
 * [5 years ago](https://wordpress.org/support/topic/input-field-custom-validation-question/#post-14493419)
 * Ah, I have found a guide for it on the official site. [https://contactform7.com/2015/03/28/custom-validation/](https://contactform7.com/2015/03/28/custom-validation/)

Viewing 1 replies (of 1 total)

The topic ‘Input field custom validation question’ 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/)

 * 1 reply
 * 1 participant
 * Last reply from: [balazskissicell](https://wordpress.org/support/users/balazskissicell/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/input-field-custom-validation-question/#post-14493419)
 * Status: resolved