Contact Form 7 3.4 is now available. This is the first major upgrade in seven months and the main feature of this release is HTML5 support.
Contact Form 7 3.4 introduces 10 new form-tags corresponding to HTML5 input types, including tel, url, number, range and date. It also changes the existing form-tags to reflect those changes that HTML5 introduces; for example, using the email input type for an email field instead of text input type and supporting the use of the maxlength attribute for textarea.
» Download Contact Form 7 plugin from WordPress.org
Note for Upgrading Users
- This version of Contact Form 7 requires WordPress 3.5 or higher. If you are using older versions of WordPress, please upgrade WordPress first.
- Since Contact Form 7 3.4 has changed the
typeattribute of theinputelement used for email fields fromtexttoemail,input[type="text"]CSS selector no longer matches the email fields. For email fields, the use of theinput.wpcf7-textselector is preferable. - If you don’t wish to use HTML5 input types, you can disable this by adding the following code into your theme’s functions.php file:
add_filter( 'wpcf7_support_html5', '__return_false' );
Change Log
- Introduced the following form-tags:
[url]and[url*]for URL field,[tel]and[tel*]for telephone number field,[number],[number*],[range]and[range*]for number input field, and[date]and[date*]for date input field. - Changed the
typeattribute of email field ([email]and[email*]) fromtexttoemail. - Support the use of the
maxlengthattribute for textarea ([textarea]and[textarea*]). - Support the use of HTML5
placeholderattribute (watermarkis still supported and works as an alias ofplaceholder). - Support the use of
readonlyattribute. - Add the attribute
aria-required="true"to each required field. - Introduced WPCF7_Shortcode class and rewrote all shortcode handler functions using it.
- The following action and filter hooks have been introduced:
wpcf7_mail_failed,wpcf7_support_html5,wpcf7_form_novalidate,wpcf7_is_email,wpcf7_is_url,wpcf7_is_tel,wpcf7_is_number,wpcf7_is_dateandwpcf7_map_meta_cap. - The jQuery Form Plugin (jquery.form.js) has been updated to 3.32.0.
- The required WordPress version has been changed and now requires WordPress 3.5 or higher.