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 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-2.png
  • screenshot-3.png
  • screenshot-4.png
  • screenshot-5.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

October 31, 2019
I just need to add the CSS code for resolve this issue: https://wordpress.org/support/topic/flag-shows-over-the-country-phone-text/ Thanks
October 31, 2019
I was looking for something simple without to much over head and this fit the bill. Thumbs up for sure.. I was at first using the international telephone input plugin but i couldnt get the default country set and it was being a pain but this was easy to use and just worked without issues. +1 for ease of use, simplicity, minimalist design and i like how you can easily add or remove the countries you want via the 2 letter codes.
September 20, 2019
Hey there, I was looking for the International country and phone input and I got both on one same plugin. Credits to the author. This plugin is like a cherry on a cake.
Read all 17 reviews

Contributors & Developers

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

Contributors

“Country & Phone Field Contact Form 7” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Country & Phone Field Contact Form 7” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by 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.