Set country as default for phone fields in Freedom UI

Hi,



Is it possible to set a country as default for phones in Freedom UI ?



Always stuck on USA (+1) by default...







Thanks,



Damien

Like 2

Like

10 comments
Best reply

Hello.

In order to set default flags config
{
      "operation": "merge",
      "name": "MobilePhone",
      "values": {
        "displayPhoneMask": true,
/* set view mode with the flags */
        "alwaysShowFlags": true,
/*this block adds required configuration - you should place all parameters here*/
        "countrySelectionConfig": {
          "nationalMode": false,
          "autoHideDialCode": false,
          "excludeCountries": ["ru", "by"],
/*useful feature to set favourites countries - they will be placed at the top */
          "preferredCountries": ["ua", "de", "uk", "pl", "md", "ro", "cz", "sk", "us"],
          "initialCountry":"ua"
        }
      }
    }
BW,
Oleksandr Lisovyi, MasterCRM

Sorry cannot remove the "£", post editing is not working on the community today



Hello Damien,

 

We have checked your request and unfortunately it is not possible to set a phone mask with a certain code by default at the moment, but I registered this idea for our developers so that they would consider the possibility of implementing such functionality in future releases.

Thank you,



This new dropdown list always defaulting to US is actually a decrease towards poorer UI experience vs blank field we used to have (more clicks, slowed down input)



Especially that you cannot type in the country code +41 and it "naturally" goes to the right country, you need to do a manual letter search each time.



On a positive note --> it makes sure  everyone fills in the country codes now and the numbers show in the correct format of the country.

Could you please provide us with updates on this question? May be you have reference for crt.PhoneInput?

Hi, 

Yes, our clients are still asking how can we change the default country, does not make sense for all the international users to be stuck on USA as default. Any update ?

Thanks, 



Damien

When will this functionality be added? Because it's very inconvenient to constantly select a mask. 

Mira Dmitruk,

Good morning

 

Do you know in wich table is the phone codes?, I want in the meantime delete all countries not needed to made easier found the country codes we usually need.

 

Or another way to disable/delete not needed phone codes?

 

Thanks in advance

Julio

Hi everyone. 

 

How can we select the country code by default? 

We must have a system setting to select the country.

luis.goncalves@imdigital.pt,

Hi Luis, the only way I have found is to define, in the object to which the phone numbers belong, the default value with the prefix you need.

 

The problem, is that when saving the record, all phone numbers are saved with that prefix, whether the user has filled them a number or not.

 

Then if you decide to do something with the uncompleted numbers, with a process with a start signal regarding edited record or new record and if the phone numbers have not been filled decide what to do with them, keep as they are or reset to an empty phone number ...

 

Hello.

In order to set default flags config
{
      "operation": "merge",
      "name": "MobilePhone",
      "values": {
        "displayPhoneMask": true,
/* set view mode with the flags */
        "alwaysShowFlags": true,
/*this block adds required configuration - you should place all parameters here*/
        "countrySelectionConfig": {
          "nationalMode": false,
          "autoHideDialCode": false,
          "excludeCountries": ["ru", "by"],
/*useful feature to set favourites countries - they will be placed at the top */
          "preferredCountries": ["ua", "de", "uk", "pl", "md", "ro", "cz", "sk", "us"],
          "initialCountry":"ua"
        }
      }
    }
BW,
Oleksandr Lisovyi, MasterCRM

Show all comments