• We are using Contact Form 7 and the Participants Database plugin. We want to limit who is able to submit a “members only” contact form to email addresses that are in the wp_participants_database table.

    Do you know if there is a way to validate the email address in the contact form with the email field in that table?

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author xnau webdesign

    (@xnau)

    You would set up a custom validator for your CF7 form, and in the function that validates the email field, you can use a utility function from Participants Database like this:

    Participants_Db::get_record_id_by_term( $term, $value )

    Where $term is the name of the email field to check in Participants Database, and $value is the email address from the CF7 submission to check. If the email is not found, you will get a boolean false. If it is found, you will get the record id that matches the email address.

    Thread Starter kallym

    (@kallym)

    Thank you, I’ll write a function and test that out. I’ll report back my results. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Validate Contact Form 7 email against Participant Database email field’ is closed to new replies.