i am wondering the same thing.
would like to use US as the default flag. is this possible?
-
This reply was modified 7 years, 1 month ago by
amaunsworth.
me too, how we can put a default flag? just to let the user understand that there is a flag selector?
thanks
Angelo
Guys, i got it: modify the script.min.js and put initialCountry: “es” not “auto”.
Angelo
Please @damiarita can you please add a configuration field about the initial flag? thank you
Angelo
Hi,
I have add this plugin and facing same issue, grey spot in place of flag is showing there and if user submit form without choosing flag then i am not able to see country code in my email.
I have replaced there in script.js and script.min.js to ‘us’
initialCountry: “us”,
BUT its not showing initial flag there.
@angelolazzari if you have sort out this issue and its working then kindly help me.
https://dandbdubai.com/marina-vista-by-emaar/
@mfarooqraza i can see the flag, did you got the fix?
Angelo
I have put there ‘ae’ instead of ‘us’.
Also removed cache. But in some mobile devices, it’s showing UAE flag but in some Samsung devices it’s not showing. On my laptop also not showing UAE flag, only grey box is there as initial select.
Am not sure what is going on. If it’s cache then I already cleared that, also clear minifi js file and upload new one.
Can you please give some assistance.
are you using a cache plugin? try disable it and see what happen…
Angelo
did anyone get this resolved? i can’t seem to put a default flag. i’ve tried everything on this page and nothing works. any suggestions?
Hello,
The main feature of this plugin is to get the country from the current customer automatically, you don’t need to set a default country because the plugin will get this info from the customer IP. Please note, if the user is using an ad blocker browser add-on, like AdBlock, the plugin will be unable to get the customer country.
In any case, you can choose several preferred countries to display upper in the country list. To enable this, you have to add the preferredCountries form tag this way:
<label> Your Phone:
[intl_tel customer-phone preferredCountries:us-ca-mx] </label>
In the example above, your phone field will show United States, Canada and Mexico at the top of the list. You can add so many codes as you need, using two-letters country codes hyphen separated:

Hope this can help you.
Best regards,
Yordan Soares