BACK TO DIRECTORY

International Telephone Input for Contact Form 7

by Yordan Soares

4.6
(26 ratings)

Addon for Contact Form 7 that creates a new type of input for entering and validating international telephone numbers. It adds a flag dropdown with prefix of the telephone number, detects the user’s country, displays a relevant placeholder and provides formatting/validation methods.

How to use

Once you have installed and activated your plugin, a new type of input field will be available in your Contact Form 7 forms. In order to add it to your form, you can either click on the “International Telephone” button above your form editor, or add the shortcode like: [intl_tel* {your-phone}]. Replace {your-phone} by the name do you want to give the field. Optionally, you can use the asterisk (*) to makes the field required.

To display the field’s info on your email, use this tag: [{your-phone}]. It will display something like +12025550109

Aditional info in your email

You can also recover specific parts of the telephone number: the name of the country it refers to, the country code, the number without the country code. Use this tags:

  • [{your-phone}-cf7it-country-name]: It prints the name of the country. For the example above: United States
  • [{your-phone}-cf7it-country-code]: It prints the country code of the phone number. For the example above: 1
  • [{your-phone}-cf7it-country-iso2]: It prints the country iso code. For the example above: us
  • [{your-phone}-cf7it-national]: It prints the phone number without international prefix. For the example above: 2025550109

Third-party software

This plugin uses the International Telephone Input JavaScript library and the eXTReMe-IP-LOOKUP.com API.

Screenshots

International telephone input

International telephone input

Adding a initial country. Now you can set a initial country by default. When this option is set, the IP lookup feature will be disabled.

Adding a initial country. Now you can set a initial country by default. When this option is set, the IP lookup feature will be disabled.

Adding a default or placeholder value. Now you can set a default or placeholder value for the telephone input.

Adding a default or placeholder value. Now you can set a default or placeholder value for the telephone input.

Plugin Details

Active Installs
8K+
Total Downloads
81,757
Version
1.5.7
Requires WP
4.0
Requires PHP
7.0
Tested Up To
5.9.16
Added
2015-12-24
Last Updated
2022-02-21 4:53am GMT

Ratings

5
22
4
1
3
0
2
2
1
1