Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Contact Form 7: Is there a 'Confirm E-mail' input type?

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?

like image 267
Sean Kleinjung Avatar asked Jun 06 '11 16:06

Sean Kleinjung


People also ask

How do I add validation to contact form 7?

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?

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.


1 Answers

The plugin now has an official tutorial for this:

http://contactform7.com/2015/03/28/custom-validation/

like image 196
giraff Avatar answered Oct 22 '22 19:10

giraff