This add-on provides an enhanced telephone field specifically designed for international phone numbers. It allows users to input and validate phone numbers in the correct format for their country or region, improving the user experience and data accuracy in your WordPress forms.
Installation and settings plugin
- Download: https://wordpress.org/plugins/contact-form-7/
Installation – top
- Upload the add-to-any directory to the /wp-content/plugins/ directory.
Create an International Telephone Input Action – top
New contact form -> click tag “Telephone”
Setting stelephone field – top
How to set preferred countries list?
Specify the countries to appear at the top of the list. Default:
You can use setting pre:us|gb
us|gb are country code (refer to http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
E.g: [tel tel-948 pre:us|gb]
How to set only the selected or exclude countries list?
In the dropdown, display only the countries you specify – see an example.:
E.g: I want to display three countries The USA, the United Kingdom of Great Britain, Northern Ireland, Bulgaria.
E.g: [tel tel-658 onlyct:us|gb|bg]
How to automatically select Countries?
Click on the checkbox
That’s it! We hope this article helped you find out how to add the international phone to your contact form 7.