I am using the Contact Form 7 Wordpress plugin to add contact forms to a website. The form needs to have a second field for the user's email address, which is compared to the contents of the first to catch any typos. This is a very common element of contact and registration forms.
Is there a Contact Form 7 tag that can be used to implement this type of functionality? If not, can anyone who has modified the plugin to do this point me in the direction of a solution?
In Contact Form 7, a user-input validation is implemented as a filter function. The filter hook used for the validation varies depending on the type of form-tag and is determined as: wpcf7_validate_ + {type of the form-tag}. So, for text form-tags, the filter hook wpcf7_validate_text is used.
Does Contact Form 7 Use SMTP? No, Contact Form 7 doesn't use SMTP by default. Instead, it sends emails through your web server, which is unreliable and can cause your contact form emails to get lost. You can install the WP Mail SMTP plugin to easily enable SMTP in Contact Form 7.
The plugin now has an official tutorial for this:
http://contactform7.com/2015/03/28/custom-validation/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With