A simple and nice plugin to get auto country flag from user ip address on gravity form phone field. If the installation is okay, go to gravity forms dashboard. Add a phone field on your form. Open phone field and you will see to enable smart phone field checkbox. Click that checkbox and configure as you want. And save form. You’re done!
Gravity Forms 2.0.0 or higher
Installation is fairly straight forward. Install it from the WordPress plugin repository.
Wow! Mighty impressed with this plugin.
We tested many similar plugins and this one, by far, performs the best.
If you plan to use this plugin, please refer to the support section of this plugin for useful information (i.e., minor fix and adjustments for optimum plugin performance).
1.) Better input mask itself, I think this is a limitation of Int-Tel-Input itself, which does not do a great job of masking while typing, there is only a mask shown in the placeholder and then once you start typing in the field it disappears and there is no visual mask, only a string which will accept any character not just numbers. It will then highlight the field if the mask is not met, but still needs to be a visual and real time thing more like how a library like cleave.js implements masks, but then cleave.js is not as visual in picking the country code.
2.) The entered number does not appear to show the international country code selected, it just shows the string entered with no formatting. This sort of defeats the purpose of having an international phone input. Needs to include the country code in what gets saved in the database.
3.) Selecting the preferred countries when configuring the field is tedious. I know implementing a better UI here is a real pain to do, but the list is just too long for ctrl+click to be a good way to achieve this. Needs to be more of like a searchable list where you select keywords which appear in a bubble that you can rearrange or remove easily.