Details
-
Type:
New Feature
-
Status: Done/Fixed
-
Priority:
Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.0.0
-
Fix Version/s: Unscheduled
-
Component/s: Core CiviCRM
-
Labels:None
Description
civicrm_country contains already country_code to put the phone prefix of the country.
I'd be great to use it, for instance:
on blur the phone field and the country is set to UK, verify if the phone starts with 0044 or +44
if the country is not set and the phone number starts with 0044 or +44, set the country to UK.
have a bin/updatePhone that does it automatically.
First step, populating this country_code is done (attached)
I'm going to use it in an extension, don't need it in the core.
The extension will ensure the format of the phone is "correct" (ie. with the country prefix), and probably set the country rather than use the country to set the country prefix.
We'll see, I'm going to work on the extension early next year, I'll update on the progress