Title: Country &amp; Phone Field Contact Form 7
Author: Narinder Singh
Published: <strong>août 2, 2018</strong>
Last modified: mars 4, 2026

---

Search plugins

![](https://ps.w.org/country-phone-field-contact-form-7/assets/icon-256x256.png?
rev=2064274)

# Country & Phone Field Contact Form 7

 By [Narinder Singh](https://profiles.wordpress.org/narinderbisht/)

[Download](https://downloads.wordpress.org/plugin/country-phone-field-contact-form-7.2.6.4.zip)

 * [Details](https://tah.wordpress.org/plugins/country-phone-field-contact-form-7/#description)
 * [Reviews](https://tah.wordpress.org/plugins/country-phone-field-contact-form-7/#reviews)
 *  [Installation](https://tah.wordpress.org/plugins/country-phone-field-contact-form-7/#installation)
 * [Development](https://tah.wordpress.org/plugins/country-phone-field-contact-form-7/#developers)

 [Support](https://wordpress.org/support/plugin/country-phone-field-contact-form-7/)

## Description

Country & Phone Field Contact Form 7 plugin is **an add-on for Contact Form 7** 
plugin. This plugin **add two new form tag fields** that is **Country list** (form-
tag: country drop-down) and **Country Phone extensions list** (form-tag: phone number)
in Contact form 7.

Country & Phone Field Contact Form 7 helps you in creating a country drop-down list
with country flags. The tag field will automatically add countries name in standard
drop-down field of contact form 7.

How to add the fields in the contact form 7
 1.) Once you have installed activated
the Country & Phone Field Contact Form 7 plugin. 2.) Add the form-tag « country 
drop-down » and « phone number » to your form and save the changes.

Requirments:
 * Contact form 7 must be active plugin.

#### Recommended Plugins

The following plugin is recommended for Country & Phone Field Contact Form 7 users:
*
[Contact form 7](https://wordpress.org/plugins/contact-form-7/) by takayukister –
With Conact form 7, you can use this plugin. Without contact form 7 this plugin 
have no needs.

## Screenshots

[⌊screenshot-1.png⌉⌊screenshot-1.png⌉[

screenshot-1.png

[⌊screenshot-2.png⌉⌊screenshot-2.png⌉[

screenshot-2.png

[⌊screenshot-3.png⌉⌊screenshot-3.png⌉[

screenshot-3.png

[⌊screenshot-4.png⌉⌊screenshot-4.png⌉[

screenshot-4.png

[⌊screenshot-5.png⌉⌊screenshot-5.png⌉[

screenshot-5.png

[⌊screenshot-6.png⌉⌊screenshot-6.png⌉[

screenshot-6.png

[[

## Installation

 1. Upload the entire `country-phone-field-contact-form-7` folder to the `/wp-content/
    plugins/` directory.
 2. Kindly make sure ‘contact form 7’ plugin active before activate this plugin.
 3. Activate the plugin through the ‘Plugins’ menu in WordPress.
 4. Setup default country, include, preferred and exclude countries settings from contact
    >> CPF settings.

You will find two new fields type in your contact form 7 field list.

## FAQ

### How to set default selected country?

Add default country iso code from settings section. Contact >> CPF Settings

### How to set preferred countries list?

Add preferred countries iso code from settings section. Contact >> CPF Settings.
Example: us,in,ca,gb

### How to set only selected or exclude countries list?

Add only selected countries iso code from settings section. Contact >> CPF Settings.
Example: us,in,ca,gb

### How disable country dial code (+)?

Enable option for dial code disable form plugin settings. Contact >> CPF Settings.

### How to apply number only validation on phone field?

While adding the field, enable number only validation checkbox. If you already added
the field. Just add « numberonly » option in field shortcode. e.g [phonetext phonetext-
178 numberonly]

### How maxlength and minlength validation apply on phone field?

Please use contact form 7 standard featured minlength and maxlength option. It will
work for you.

## Reviews

![](https://secure.gravatar.com/avatar/5b4fe0be888960177ca556056a92aea4aa0900568754350683d1dc56cbabee78?
s=60&d=retro&r=g)

### 󠀁[Phone number field allows text input](https://wordpress.org/support/topic/phone-number-field-allows-text-input/)󠁿

 [zephsa](https://profiles.wordpress.org/zephsa/) mai 7, 2025 1 reply

Hi, I selected Number Only Validation in the options but it does not work. It still
allows me to insert letters. How can I fix this? Thanks

![](https://secure.gravatar.com/avatar/1e0cdadd317172450a7ca647f6047cb9a44a394f396e7ec44f01dcd1c3a5d30a?
s=60&d=retro&r=g)

### 󠀁[Country code is not getting displayed in the mobile view the but the flag is.](https://wordpress.org/support/topic/country-code-is-not-getting-displayed-in-the-mobile-view-the-but-the-flag-is/)󠁿

 [aliop25](https://profiles.wordpress.org/aliop25/) avril 2, 2025 1 reply

The country code is working fine on the desktop view. But for a mobile view when
you select any country the flag gets displayed but no country code is visible. This
field being mandatory, then doesn’t allow the form to be submitted.

![](https://secure.gravatar.com/avatar/ca3b6aa55161ba0b9e284d55e9a027093ed0488403d941098bb0fb8082f41823?
s=60&d=retro&r=g)

### 󠀁[How can i add different default country for forms](https://wordpress.org/support/topic/how-can-i-add-different-default-country-for-forms/)󠁿

 [Faizan Farooq Sheikh](https://profiles.wordpress.org/faizan141/) mars 24, 2025
1 reply

Is there a way to set different default countries for multiple forms? I have a requirement
where Country A needs to be the default for one form, and Country B needs to be 
the default for another form

![](https://secure.gravatar.com/avatar/19818d292c0b0fa7ba102975f4f0117bc0a8017c098e9302ab97a83657020608?
s=60&d=retro&r=g)

### 󠀁[Support](https://wordpress.org/support/topic/support-605/)󠁿

 [Lucas Lopes](https://profiles.wordpress.org/lpdlo/) février 25, 2025

Fast and effective support

![](https://secure.gravatar.com/avatar/e28375587c6528c5e873c4aabc283c9e2028e01dc82cabb5d37e9acb51b1a5b0?
s=60&d=retro&r=g)

### 󠀁[Country code not received in mail](https://wordpress.org/support/topic/country-code-not-received-in-mail/)󠁿

 [govindkewat120](https://profiles.wordpress.org/govindkewat120/) septembre 27, 
2024 1 reply

I use this plugin but they not proper working like i want the received complete 
mobile filed data with country code but they send only mobile number also the limit
validation in not working user add any number

![](https://secure.gravatar.com/avatar/cd8028f73f26f1613a4f6915f2e64ff3e44095fa3b443288e36d74da86d6f247?
s=60&d=retro&r=g)

### 󠀁[Not working in newer version of WP](https://wordpress.org/support/topic/not-working-in-newer-version-of-wp/)󠁿

 [15kstudios](https://profiles.wordpress.org/15kstudios/) mai 8, 2023

Dropdown does not fold down properly.

 [ Read all 43 reviews ](https://wordpress.org/support/plugin/country-phone-field-contact-form-7/reviews/)

## Contributors & Developers

“Country & Phone Field Contact Form 7” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ Narinder Singh ](https://profiles.wordpress.org/narinderbisht/)

“Country & Phone Field Contact Form 7” has been translated into 7 locales. Thank
you to [the translators](https://translate.wordpress.org/projects/wp-plugins/country-phone-field-contact-form-7/contributors)
for their contributions.

[Translate “Country & Phone Field Contact Form 7” into your language.](https://translate.wordpress.org/projects/wp-plugins/country-phone-field-contact-form-7)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/country-phone-field-contact-form-7/),
check out the [SVN repository](https://plugins.svn.wordpress.org/country-phone-field-contact-form-7/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/country-phone-field-contact-form-7/)
by [RSS](https://plugins.trac.wordpress.org/log/country-phone-field-contact-form-7/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

1.0.0
 *First version of plugin.

1.0.1
 * Update FAQs * Tested with wordpress 5.0

2.0.0
 * Add phone and country dropdown settings. * Made countries include, exclude
and preferred list dynamic and admin managable. * Resolve support issues.

2.0.1
 * Add geo location functionality for default country select. 2.0.2 * fix 
settings fatal error. 2.0.3 * Add plugin profile icon 2.0.4 * fixed php warning 
message for file_get_contents() call geo_ip location. 2.0.5 * add option for disable
country dial code from phone extension drop-down. * add option for enable auto country
select. * tested required attribute. It is working fine. * placeholder option tested
and it is working fine. 2.0.6 * fixed and warning message error. 2.0.7 * added new
faq. 2.0.8 * Added phone number field number values validation. 2.0.9 * Bug fix 
phone number field number values validation. 2.1.0 * fix countries code issues. 
Convert to lowercase. 2.1.1 * fixed phone number validation bug. 2.1.2 * fixed IP
Address issue. It was PHP based. Now I convert to JavaScript based. So client end
IP tracking is working fine. 2.1.3 * plugin is translate ready now. * phone number
validation has updated. Now user can manage number only validation from field settings.
2.1.4 * settings page php warning message has fixed. 2.1.5 * auto hide the country
drop-down after click outside the drop-down container. * remove drop-down default
listing style and css updated. 2.1.6 * update plugin documentation/description *
update plugin css fixes * update plugin screenshots. 2.2.0 * update plugin code 
and made more secure. * removed unwanted code. 2.2.1 * update plugin input sanitization
callback * make sure all input values should be well sanitized. 2.2.2 * wp_enqueue_script
javascript move to footer. 2.2.3 * Tested upto WordPress 5.5.1 2.2.4 * Tested upto
WordPress 5.6 2.2.5 * Added a wordpress notice box for affiliation. 2.2.6 * Added
a wordpress notice box image missing issue fixed. 2.2.7 * Remove affiliation notice
box. 2.2.8 * Tested with new wordpress version and contact form 7 plugin. 2.2.9 *
Adding a hidden filed capture country code for phone field. It helps in custom validation.
2.3.0 * Add a feature, country name and phone dial code cannot remove. It auto prefix,
if user removed by mistake. * Tested with new contact form 7 and wordpress version.*
Enable affiliation banner with dimissable button. * Now affiliation banner will 
not distrub any plugin subscriber. It can be disable from admin easy. 2.3.1 * Country
and phone field validation imporved. 2.3.2 * freegeoip.live/json API URL is not 
working anymore. So we discontinue this feature form the plugin. * We remove auto
country selection feature based on IP address track. * Due API not working anymore
so we remove this feature.

2.3.3
 * new IP detection API added. * Auto country selection feature recovered 
now. * New API working for IP tracking and detection the user IP based country. 
2.3.4 * new IP detection API for https urls * Auto country selection settings re-
enable

2.3.5
 * A new IP API key feature added. * Plugin settings has updated and added
IP API key manage feature.

2.3.6
 * Added new FAQs

2.3.7
 * Update IP tracking API. * API now use without API key.

2.3.8
 * Update phone field validation functionality * Update Country field validation
functionality 2.3.9 * Fixed phone field validation issue.

2.4.0
 * Fixed the auto country selection API issue.

2.4.1
 * Update auto country selection API and refine the JS code.

2.4.2
 * Update auto country selection API JS code issues.

2.4.3
 * Phone number maxlength and minlength validation has fixed

2.4.4
 * update IP tracking API to https://reallyfreegeoip.org/json/

2.4.5
 * Tested on WordPress 6.2

2.4.6
 * Tested on WordPress 6.3.2

2.4.7
 * Tested on wordpress 6.5.3

2.4.8
 * Fixed number of tags issues

2.4.9
 * Add stable tag in readme file

2.5.0
 * Fixed country dial code issue.

2.5.1
 * Fixed country dial code dropdown issue fixed.

2.5.2
 * Fixed phone dial code placeholder and remove dial code issue.

2.5.3
 * Country dial code input debug.

2.5.4
 * Phone input field validation bug fixed

2.5.5
 * Phone input field autofill issue fixed.

2.5.6
 * The auto country selection API URL was not working. So it has updated.

2.5.7
 * Issue fixed with cors for IP fetch

2.5.8
 * Fixed plugin field deprecated notice message.

2.6.0
 * Major update change for field. Contact form 7 core function has updated.

2.6.1
 * Tested on wordpress 6.8.1

2.6.2
 * Tested on wordpress 6.9.1

2.6.3
 * Fixed PHP version warning.

2.6.4
 * IP address fetch API change

2.6.5
 * IP address fetch API error fixed.

## Meta

 *  Version **2.6.5**
 *  Last updated **7 mois ago**
 *  Active installations **40 000+**
 *  WordPress version ** 6.0 or higher **
 *  Tested up to **6.9.10**
 *  PHP version ** 7.4 or higher **
 *  Languages
 * [Arabic](https://ar.wordpress.org/plugins/country-phone-field-contact-form-7/),
   [English (US)](https://wordpress.org/plugins/country-phone-field-contact-form-7/),
   [Spanish (Chile)](https://cl.wordpress.org/plugins/country-phone-field-contact-form-7/),
   [Spanish (Colombia)](https://es-co.wordpress.org/plugins/country-phone-field-contact-form-7/),
   [Spanish (Ecuador)](https://es-ec.wordpress.org/plugins/country-phone-field-contact-form-7/),
   [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/country-phone-field-contact-form-7/),
   [Spanish (Spain)](https://es.wordpress.org/plugins/country-phone-field-contact-form-7/),
   and [Spanish (Venezuela)](https://ve.wordpress.org/plugins/country-phone-field-contact-form-7/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/country-phone-field-contact-form-7)
 * Tags
 * [contact form 7](https://tah.wordpress.org/plugins/tags/contact-form-7/)[International Telephone Input](https://tah.wordpress.org/plugins/tags/international-telephone-input/)
   [wordpress plugin](https://tah.wordpress.org/plugins/tags/wordpress-plugin/)
 *  [Advanced View](https://tah.wordpress.org/plugins/country-phone-field-contact-form-7/advanced/)

## Ratings

 4.5 out of 5 stars.

 *  [  34 5-star reviews     ](https://wordpress.org/support/plugin/country-phone-field-contact-form-7/reviews/?filter=5)
 *  [  2 4-star reviews     ](https://wordpress.org/support/plugin/country-phone-field-contact-form-7/reviews/?filter=4)
 *  [  1 3-star review     ](https://wordpress.org/support/plugin/country-phone-field-contact-form-7/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/country-phone-field-contact-form-7/reviews/?filter=2)
 *  [  4 1-star reviews     ](https://wordpress.org/support/plugin/country-phone-field-contact-form-7/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/country-phone-field-contact-form-7/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/country-phone-field-contact-form-7/reviews/)

## Contributors

 *   [ Narinder Singh ](https://profiles.wordpress.org/narinderbisht/)

## Support

Issues resolved in last two months:

     0 out of 1

 [View support forum](https://wordpress.org/support/plugin/country-phone-field-contact-form-7/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.com/paypalme/narinderbisht)