A powerful DatoCMS plugin that transforms standard fields into smart phone number inputs with country code selection. Validates and formats numbers according to international standards while providing flexible output options (text or JSON) to seamlessly integrate with your development workflow.
The plugin ensures you'll never worry about invalid phone numbers in your DatoCMS projects again. Simply enable it on your desired fields and enjoy reliable, properly formatted phone data throughout your content.
Add this plugin via DatoCMS Settings > Plugins > Add (/admin/plugins/new
).
You can only use include or exclude countries, not both. When one is filled, the other is disabled. You will have to empty it before you can use the other. Based on the included or excluded countries the options in the default country will be updated.
{ "phoneNumber": "+31612345678",}
{ "phoneNumber": { "country": "NL", "countryCallingCode": "31", "nationalNumber": "612345678", "number": "+31612345678", "__countryCallingCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN" }}
See contributing.md.