Skip to main content
Agency Program Get 2× more leads and save 50% on hosting. Built for agencies ready to grow. Book a call
International Telephone Input for Contact Form 7 icon

International Telephone Input for Contact Form 7

v1.5.7
by Yordan Soares · 4.6 (26 reviews)

Addon for Contact Form 7 that creates a new type of input for entering and validating international telephone numbers. It adds a flag dropdown, detect …

9K+ active installs Updated Feb 21, 2022 Tested to 5.9.10 Requires PHP 7.0
Try Demo Download
Pre-installed Ready in ~10s No card
International Telephone Input for Contact Form 7

About International Telephone Input for Contact Form 7

This plugin adds a new input field to Contact Form 7 that allows users to enter and validate international telephone numbers. It includes a flag dropdown with the prefix of the telephone number, detects the user's country, provides formatting/validation methods, and can display additional information in the email such as the country name and code. The plugin uses the International Telephone Input JavaScript library and the eXTReMe-IP-LOOKUP.com API.

Screenshots

International Telephone Input for Contact Form 7 screenshot
International Telephone Input for Contact Form 7 screenshot
International Telephone Input for Contact Form 7 screenshot

Changelog

1.5.7 — Sep 15, 2020

  • Added new options: Default or placeholder value. Now you can set a default or placeholder value for the telephone input.
  • Added new option: Initial Country. Now you can set a initial country by default. When this option is set, the IP lookup feature will be disabled.

1.5.6 — May 11, 2020

  • Fixed the flags alignment in Retina screens.
  • Improvement: now the file size of flags images are 69% smaller. Thanks to @marcusasiabc.

1.5.5 — April 25, 2020

  • Switch API service from freegeoip.app (it no longer works) to extreme-ip-lookup.com, which offer free usage until 20 requests per minute and 50,000 requests per month.

1.5.4 — April 06, 2020

  • Added a check to verify if Contact Form 7 is activated.
  • Added support for Retina screens. Thanks to Aboobacker P Ummer (@abooze) for reporting.
  • Fixed some typos in README.md. Thanks to @sylvain68 for reporting.

1.5.3 — April 03, 2020

  • Code refactored.
  • Updated the API service to freegeoip.app (up to 15,000 queries per hour).
  • Now the plugin includes the “International Telephone Input” library built-in.
  • Added new info tags in header comment.
  • Fixed text domain in plugin header comment.
  • Fixed some typos and strings without translation functions.

1.5.2

  • We change ipinfo.io IP API by freegeoip.net IP API because it has a higher requests limit. As suggested at https://wordpress.org/support/topic/ipinfo-io-limits/

1.5.1

  • We add the possibility to define de preferrec countries by adding the option preferredCountries. For example preferredCountries:es-fr (They have to be 2-letter country codes separated by hyphens ‘-‘)
  • We add teh preferredCountries and size option to the GUI form tag creator form.

1.5.0

  • We use upgrade JS version to 12.1.3. It fixes iPhone issues of old version
  • We add mail tag that recovers iso code of the selected country

1.4.6

  • We change to new CF7 functions naming (shortcode->form-tag) to avoid deprecated message with debug active (completed). No new features added

1.4.5

  • We change to new CF7 functions naming (shortcode->form-tag) to avoid deprecated message with debug active (partial). No new features added

1.4.4

  • We add the size attribute if it is sent as an option. For example: size:40

1.4.3

  • We avoid the placeholder text to be copied into the value of the input field. This, sometimes caused the flags to desappear

1.4.2

  • We repare special mail tags

1.4.1

  • We make it https compatible

1.4.0

  • We add new mail tags in order to be able to recover the country name of a telephone, the contry code and the telephone number without the country code
  • In order to get the country name use [{your-phone}-cf7it-country-name] where {your-phone} has to be replaced by the name of your tag
  • In order to get the country code use [{your-phone}-cf7it-country-code] where {your-phone} has to be replaced by the name of your tag
  • In order to get the phone number without the country code use [{your-phone}-cf7it-national] where {your-phone} has to be replaced by the name of your tag

1.3.0

  • We force the dependecies between the JS files

1.2.0

  • We load the minified JS by default. If SCRIPT_DEBUG is set to true, we use the non-minified.

1.1.0

  • CDN is used for all JS and CSS files and script is loaded at the bottom

1.0.0

  • First release

Try other plugins

Really Simple SSL icon

Really Simple SSL

4.9 · 4M+ installs

The easiest way to improve security! Leverage your SSL certificate and protect your website visitors.