Title: 3or 4 Fields Validation Check
Last modified: August 31, 2016

---

# 3or 4 Fields Validation Check

 *  Resolved [udeshkumar](https://wordpress.org/support/users/udeshkumar/)
 * (@udeshkumar)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/3or-4-fields-validation-check/)
 * I am using contact form 7 latest version and Contact Form DB latest version
    
   Grate Plugin Thanks. i want to Check 3 or more than 3 fields Child name father
   name mother name before form submitting i used instruction [http://cfdbplugin.com/?page_id=904](http://cfdbplugin.com/?page_id=904)
   i am able to restrict for a single fields but problem is that i made a school
   registration form so child name father name maybe same but all three can not 
   be same problem is that child name different and father name same its show validation
   error for father name how can i resolve please suggest me.
 * [https://wordpress.org/plugins/contact-form-7-to-database-extension/](https://wordpress.org/plugins/contact-form-7-to-database-extension/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * (@msimpson)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/3or-4-fields-validation-check/#post-6915409)
 * The Contact Form 7 “‘wpcf7_validate_text” hook only works on one field. To my
   knowledge, you cannot validate more than one field simultaneously. But you should
   look at documentation on Contact Form 7 to be sure. If you could find a CF7 hook
   like wpcf7_validate_text that sends all the form fields in, then you could change
   the filter in my example to check for all 3 fields.
 *  Thread Starter [udeshkumar](https://wordpress.org/support/users/udeshkumar/)
 * (@udeshkumar)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/3or-4-fields-validation-check/#post-6915466)
 * Thanks Michael
    i didn’t get anything for 3 or more fields check in contact form
   7 documentation. i saw in your database tables, only time is unique for one form
   submission. if i write custom code for more than 3 fields i need a table where
   i can fetch data for single unique id.. and compare with post value so How can
   i will get data for particular unique id ????? this feature if you can update
   in your plugin so it’s a grate honor for your plugin user’s Thanks in Advanced
 *  Plugin Author [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * (@msimpson)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/3or-4-fields-validation-check/#post-6915479)
 * The “wpcf7_validate_text” hook is called before form submission action. I don’t
   know what order the fields are validated in. If you know what the last field 
   to be validated is, then you could save the first two to values to the DB when
   they are validated, then validate all three on the call to validate the third.
   The order is chosen by CF7. The best solution is to encourage the maker of CF7
   to add a form-level validation hook.
 *  Thread Starter [udeshkumar](https://wordpress.org/support/users/udeshkumar/)
 * (@udeshkumar)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/3or-4-fields-validation-check/#post-6915532)
 * Hi Michael
    Thanks for the Advice

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘3or 4 Fields Validation Check’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/contact-form-7-to-database-extension_ffffff.
   svg)
 * [Contact Form DB](https://wordpress.org/plugins/contact-form-7-to-database-extension/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7-to-database-extension/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [udeshkumar](https://wordpress.org/support/users/udeshkumar/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/3or-4-fields-validation-check/#post-6915532)
 * Status: resolved