{"id":89470,"date":"2018-08-02T05:19:20","date_gmt":"2018-08-02T05:19:20","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/country-phone-field-contact-form-7\/"},"modified":"2026-03-04T13:10:57","modified_gmt":"2026-03-04T13:10:57","slug":"country-phone-field-contact-form-7","status":"publish","type":"plugin","link":"https:\/\/roh.wordpress.org\/plugins\/country-phone-field-contact-form-7\/","author":16320638,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.6.5","stable_tag":"2.6.4","tested":"6.9.4","requires":"6.0","requires_php":"7.4","requires_plugins":null,"header_name":"Country & Phone Field Contact Form 7","header_author":"Narinder Singh Bisht","header_description":"Add country drop down with flags and phone number with country phone extensions field in contact form 7.","assets_banners_color":"","last_updated":"2026-03-04 13:10:57","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/paypalme\/narinderbisht","header_plugin_uri":"","header_author_uri":"http:\/\/narindersingh.in","rating":4.4,"author_block_rating":0,"active_installs":40000,"downloads":430479,"num_ratings":43,"support_threads":1,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"2.6.1":{"tag":"2.6.1","author":"narinderbisht","date":"2026-03-04 03:49:46"},"2.6.2":{"tag":"2.6.2","author":"narinderbisht","date":"2026-03-03 09:11:01"},"2.6.3":{"tag":"2.6.3","author":"narinderbisht","date":"2026-03-04 03:52:43"},"2.6.4":{"tag":"2.6.4","author":"narinderbisht","date":"2026-03-04 13:10:57"}},"upgrade_notice":[],"ratings":{"1":5,"2":0,"3":2,"4":2,"5":34},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2064274,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2064274,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["2.6.1","2.6.2","2.6.3","2.6.4"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":1918612,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":1918612,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":1918612,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":2064211,"resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":2203342,"resolution":"5","location":"assets","locale":""},"screenshot-6.png":{"filename":"screenshot-6.png","revision":2203342,"resolution":"6","location":"assets","locale":""},"screenshot-7.png":{"filename":"screenshot-7.png","revision":2819686,"resolution":"7","location":"assets","locale":""}},"screenshots":{"1":"screenshot-1.png","2":"screenshot-2.png","3":"screenshot-3.png","4":"screenshot-4.png","5":"screenshot-5.png","6":"screenshot-6.png"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1152,228325,228324,216950,1197],"plugin_category":[42],"plugin_contributors":[160073],"plugin_business_model":[],"class_list":["post-89470","plugin","type-plugin","status-publish","hentry","plugin_tags-contact-form-7","plugin_tags-country-phone-field","plugin_tags-country-dropdown-plugin","plugin_tags-international-telephone-input","plugin_tags-wordpress-plugin","plugin_category-contact-forms","plugin_contributors-narinderbisht","plugin_committers-narinderbisht"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/country-phone-field-contact-form-7\/assets\/icon-128x128.png?rev=2064274","icon_2x":"https:\/\/ps.w.org\/country-phone-field-contact-form-7\/assets\/icon-256x256.png?rev=2064274","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/country-phone-field-contact-form-7\/assets\/screenshot-1.png?rev=1918612","caption":"screenshot-1.png"},{"src":"https:\/\/ps.w.org\/country-phone-field-contact-form-7\/assets\/screenshot-2.png?rev=1918612","caption":"screenshot-2.png"},{"src":"https:\/\/ps.w.org\/country-phone-field-contact-form-7\/assets\/screenshot-3.png?rev=1918612","caption":"screenshot-3.png"},{"src":"https:\/\/ps.w.org\/country-phone-field-contact-form-7\/assets\/screenshot-4.png?rev=2064211","caption":"screenshot-4.png"},{"src":"https:\/\/ps.w.org\/country-phone-field-contact-form-7\/assets\/screenshot-5.png?rev=2203342","caption":"screenshot-5.png"},{"src":"https:\/\/ps.w.org\/country-phone-field-contact-form-7\/assets\/screenshot-6.png?rev=2203342","caption":"screenshot-6.png"},{"src":"https:\/\/ps.w.org\/country-phone-field-contact-form-7\/assets\/screenshot-7.png?rev=2819686","caption":""}],"raw_content":"<!--section=description-->\n<p>Country &amp; Phone Field Contact Form 7 plugin is <strong>an add-on for Contact Form 7<\/strong> plugin. This plugin <strong>add two new form tag fields<\/strong> that is <strong>Country list<\/strong> (form-tag: country drop-down) and <strong>Country Phone extensions list<\/strong> (form-tag: phone number) in Contact form 7.<\/p>\n\n<p>Country &amp; 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.<\/p>\n\n<p>How to add the fields in the contact form 7 \n1.) Once you have installed activated the Country &amp; Phone Field Contact Form 7 plugin.\n2.) Add the form-tag  \"country drop-down\" and  \"phone number\"  to your form and save the changes.<\/p>\n\n<p>Requirments:\n* Contact form 7 must be active plugin.<\/p>\n\n<h4>Recommended Plugins<\/h4>\n\n<p>The following plugin is recommended for Country &amp; Phone Field Contact Form 7 users:\n* <a href=\"https:\/\/wordpress.org\/plugins\/contact-form-7\/\">Contact form 7<\/a> by takayukister \u2013 With Conact form 7, you can use this plugin. Without contact form 7 this plugin have no needs.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the entire <code>country-phone-field-contact-form-7<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Kindly make sure 'contact form 7' plugin active before activate this plugin.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Setup default country, include, preferred and exclude countries settings from contact &gt;&gt; CPF settings.<\/li>\n<\/ol>\n\n<p>You will find two new fields type in your contact form 7 field list.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20to%20set%20default%20selected%20country%3F\"><h3>How to set default selected country?<\/h3><\/dt>\n<dd><p>Add default country iso code from settings section. Contact &gt;&gt; CPF Settings<\/p><\/dd>\n<dt id=\"how%20to%20set%20preferred%20countries%20list%3F\"><h3>How to set preferred countries list?<\/h3><\/dt>\n<dd><p>Add preferred countries iso code from settings section. Contact &gt;&gt; CPF Settings. Example: us,in,ca,gb<\/p><\/dd>\n<dt id=\"how%20to%20set%20only%20selected%20or%20exclude%20countries%20list%3F\"><h3>How to set only selected or exclude countries list?<\/h3><\/dt>\n<dd><p>Add only selected countries iso code from settings section. Contact &gt;&gt; CPF Settings. Example: us,in,ca,gb<\/p><\/dd>\n<dt id=\"how%20disable%20country%20dial%20code%20%28%2B%29%3F\"><h3>How disable country dial code (+)?<\/h3><\/dt>\n<dd><p>Enable option for dial code disable form plugin settings. Contact &gt;&gt; CPF Settings.<\/p><\/dd>\n<dt id=\"how%20to%20apply%20number%20only%20validation%20on%20phone%20field%3F\"><h3>How to apply number only validation on phone field?<\/h3><\/dt>\n<dd><p>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]<\/p><\/dd>\n<dt id=\"how%20maxlength%20and%20minlength%20validation%20apply%20on%20phone%20field%3F\"><h3>How maxlength and minlength validation apply on phone field?<\/h3><\/dt>\n<dd><p>Please use contact form 7 standard featured minlength and maxlength option. It will work for you.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<p>1.0.0\n*First version of plugin.<\/p>\n\n<p>1.0.1\n* Update FAQs\n* Tested with wordpress 5.0<\/p>\n\n<p>2.0.0\n* Add phone and country dropdown settings.\n* Made countries include, exclude and preferred list dynamic and admin managable.\n* Resolve support issues.<\/p>\n\n<p>2.0.1\n* Add geo location functionality for default country select.\n2.0.2\n* fix settings fatal error.\n2.0.3\n* Add plugin profile icon\n2.0.4\n* fixed php warning message for file_get_contents() call geo_ip location.\n2.0.5\n* add option for disable country dial code from phone extension drop-down.\n* add option for enable auto country select.\n* tested required attribute. It is working fine.\n* placeholder option tested and it is working fine.\n2.0.6\n* fixed and warning message error.\n2.0.7\n* added new faq.\n2.0.8\n* Added phone number field number values validation.\n2.0.9\n* Bug fix phone number field number values validation.\n2.1.0\n* fix countries code issues. Convert to lowercase.\n2.1.1\n* fixed phone number validation bug.\n2.1.2\n* fixed IP Address issue. It was PHP based. Now I convert to JavaScript based. So client end IP tracking is working fine.\n2.1.3\n* plugin is translate ready now.\n* phone number validation has updated. Now user can manage number only validation from field settings.\n2.1.4\n* settings page php warning message has fixed.\n2.1.5\n* auto hide the country drop-down after click outside the drop-down container.\n* remove drop-down default listing style and css updated.\n2.1.6\n* update plugin documentation\/description\n* update plugin css fixes\n* update plugin screenshots.\n2.2.0\n* update plugin code and made more secure.\n* removed unwanted code.\n2.2.1\n* update plugin input sanitization callback\n* make sure all input values should be well sanitized.\n2.2.2\n* wp_enqueue_script javascript move to footer.\n2.2.3\n* Tested upto WordPress 5.5.1\n2.2.4\n* Tested upto WordPress 5.6\n2.2.5\n* Added a wordpress notice box for affiliation.\n2.2.6\n* Added a wordpress notice box image missing issue fixed.\n2.2.7\n* Remove affiliation notice box.\n2.2.8\n* Tested with new wordpress version and contact form 7 plugin.\n2.2.9\n* Adding a hidden filed capture country code for phone field. It helps in custom validation.\n2.3.0\n* Add a feature, country name and phone dial code cannot remove. It auto prefix, if user removed by mistake.\n* Tested with new contact form 7 and wordpress version.\n* Enable affiliation banner with dimissable button.\n* Now affiliation banner will not distrub any plugin subscriber. It can be disable from admin easy.\n2.3.1\n* Country and phone field validation imporved.\n2.3.2\n* freegeoip.live\/json API URL is not working anymore. So we discontinue this feature form the plugin.\n* We remove auto country selection feature based on IP address track.\n* Due API not working anymore so we remove this feature.<\/p>\n\n<p>2.3.3\n* new IP detection API added.\n* Auto country selection feature recovered now.\n* New API working for IP tracking and detection the user IP based country.\n2.3.4\n* new IP detection API for https urls\n* Auto country selection settings re-enable<\/p>\n\n<p>2.3.5\n* A new IP API key feature added.\n* Plugin settings has updated and added IP API key manage feature.<\/p>\n\n<p>2.3.6\n* Added new FAQs<\/p>\n\n<p>2.3.7\n* Update IP tracking API. \n* API now use without API key.<\/p>\n\n<p>2.3.8\n* Update phone field validation functionality\n* Update Country field validation functionality\n2.3.9\n* Fixed phone field validation issue.<\/p>\n\n<p>2.4.0\n* Fixed the auto country selection API issue.<\/p>\n\n<p>2.4.1\n* Update auto country selection API and refine the JS code.<\/p>\n\n<p>2.4.2\n* Update auto country selection API JS code issues.<\/p>\n\n<p>2.4.3\n* Phone number maxlength and minlength validation has fixed<\/p>\n\n<p>2.4.4\n* update IP tracking API to https:\/\/reallyfreegeoip.org\/json\/<\/p>\n\n<p>2.4.5\n* Tested on WordPress 6.2<\/p>\n\n<p>2.4.6\n* Tested on WordPress 6.3.2<\/p>\n\n<p>2.4.7\n* Tested on wordpress 6.5.3<\/p>\n\n<p>2.4.8\n* Fixed number of tags issues<\/p>\n\n<p>2.4.9\n* Add stable tag in readme file<\/p>\n\n<p>2.5.0\n* Fixed country dial code issue.<\/p>\n\n<p>2.5.1\n* Fixed country dial code dropdown issue fixed.<\/p>\n\n<p>2.5.2\n* Fixed phone dial code placeholder and remove dial code issue.<\/p>\n\n<p>2.5.3\n* Country dial code input debug.<\/p>\n\n<p>2.5.4\n* Phone input field validation bug fixed<\/p>\n\n<p>2.5.5\n* Phone input field autofill issue fixed.<\/p>\n\n<p>2.5.6\n* The auto country selection API URL was not working. So it has updated.<\/p>\n\n<p>2.5.7\n* Issue fixed with cors for IP fetch<\/p>\n\n<p>2.5.8\n* Fixed plugin field deprecated notice message.<\/p>\n\n<p>2.6.0\n* Major update change for field. Contact form 7 core function has updated.<\/p>\n\n<p>2.6.1\n* Tested on wordpress 6.8.1<\/p>\n\n<p>2.6.2\n* Tested on wordpress 6.9.1<\/p>\n\n<p>2.6.3\n* Fixed PHP version warning.<\/p>\n\n<p>2.6.4\n* IP address fetch API change<\/p>\n\n<p>2.6.5\n* IP address fetch API error fixed.<\/p>","raw_excerpt":"Add country drop down with flags and phone number with country phone extension fields in contact form 7.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/89470","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=89470"}],"author":[{"embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/narinderbisht"}],"wp:attachment":[{"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=89470"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=89470"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=89470"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=89470"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=89470"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=89470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}