Contact Form 7 Phone Module

By Gabriel Reguly

★ 2.4/5 (7 ratings)300+ active installationsVersion 2.3.4.1

Adds phone module to the Contact Form 7 plugin

Description

Add Telephone Field to Contact Form 7

This plugin adds telephone field to Contact Form 7 along with masking options.

Please notice that Contact Form 7 must be installed and active.

Masking options are accessible via tag generator panel.

Installation

  1. Upload plugin files to your plugins folder, or install using WordPress’ built-in Add New Plugin installer
  2. Activate the plugin
  3. Edit a form in Contact Form 7
  4. Use [phone your-phone mask:(999)999-9999] or [phone* your-phone mask:(999)999-9999] to add a telephone field
  5. Use [your-phone] at mail to get the content of telephone field
  6. Notice that if you add more than one phone field, only the last masking options would be effective

FAQ

What is the plugin license?

  • This plugin is released under a GPL license.

How many phone masks is possible to have?

  • Even thought one can set several phone fields with different masks, only the last mask will be used.

What is the alternate mask?

  • In Brazil, mobile telephone numbers for S?o Paulo have 9 digits instead 8 digits as the rest of the country, so this is an option to have more than one mask depending of the area code.

Screenshots

Changelog

2.3.4.1

  • Added ‘wpcf7-form-control’ to phone class as reported by https://wordpress.org/support/profile/bdeleasa

2.3.4

  • Fixed fatal error: “Fatal error: Call to undefined function wpcf7_add_tag_generator()”

2.0.1

  • Fixed issue where [phone*] made all subsequent fields be treated as required. (Thanks to insertcoinforjoy for reporting it.)

2.0

  • Added a tag generator panel where users can select their mask. Default mask now is (999)999-9999

1.0.4

  • Fixed missing code for validation, all users that use validation must upgrade. (Thanks to biswajeet for reporting it.)

1.0.3.1

  • Fixed wrong path to js, all users must upgrade.

1.0.3

  • Improved initialization, thus removing need of test and error messages.

1.0.2

  • Fixed displaying of error message and behaviour after error if Contact Form 7 is not present and active.

1.0.1

  • Added a test to check if Contact Form 7 plugin is active.

1.0

  • Initial plugin release.