• Resolved udeshkumar

    (@udeshkumar)


    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
    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://ww.wp.xz.cn/plugins/contact-form-7-to-database-extension/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    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

    (@udeshkumar)

    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

    (@msimpson)

    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

    (@udeshkumar)

    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.