Code

Discussion on Gravity Forms international phone input

Discussion on Gravity Forms international phone input

Cart 277 sales

alex91ckua supports this item

Supported

This author's response time can be up to 5 business days.

91 comments found.

Hi ALex, 2 questions : 1/ Can I add multiple phone fields (personal, mobile, work, ...) on the same form ? 2/ Have you tested it with Gravity VIEW so that editing an entry will also use your plugin ?

Hi, 1. Yep, you can. 2. No, I haven’t tested it with Gravity View

Hey Alex. Seems ok with Gravity View (just one bit of difference, as the # is stored with country code and so on, it is displayed “as is” like +330102030405 (which is legit full international format for France #). Also, the ajax control of the field do execute and I can see when a # is valid BUT if it’s not : error message will only appear on blur and * more importantly * won’t prevent form submission. Will try to dig a bit more in the coming days and will keep you posted. B.R Antoine

Thanks for your investigation, keep me updated please.

Hi Alex, I’ve been looking for this kind of a plugin for a while now, I have a few questions if I may..

1- Is it possible to set a default country code regardless of IP location, and prevent the user from changing it? (In some cases it’s useful to let the user know the form accepts phone numbers of a certain country only).

2- Is it possible to limit the choices to a certain number of countries only?

Without using any code of course..

If not, any plans on implementing these features? And how soon would you say?

Looking forward to purchasing and using this plugin. Thanks in advance!

Hi, at this moment both #1 and #2 are possible by customizing code only. But in the next plugin version it will be implement into plugin natively. New plugin release will be in this month.

Hi again, how can we set up by default a country? for example, if connection with ipinfo fails or something goes wrong so we will always have a preselected country.

Hi, it’s possible.

Please open: /js/main.js file and modify “options” variable.

https://pastebin.com/69xLB3iy

thanks! but you should actually put it also inside the if(autoSetIp) section or it will be always reset back to the default “auto” value.

https://pastebin.com/bbf3c90m

Oh sorry, you’re right, thanks for catching that.

Hi Addon suggestion.Premade speaking languages forms selections (with flags) and various proficiency parameters like IELTS TOEFL DALF etc

Hi, thanks for your idea! I’ll notice that.

Hi, is it possible to set a default location/flag either as an option from Wordpress (probably one I’ve missed!) or as a PHP snippet?

Hi, it’s possible.

Please open: /js/main.js file and modify “options” variable.

https://pastebin.com/69xLB3iy

Hello, I love the plugin!

I’m noticing that when viewing in, incognito, my USA flag does not automatically show.

I think maybe due to browser security setting, being incognito, it wont let your plugin detect?

Could you comment on this?

I’m thinking is there a way, (on checkout page at least) that if location is not detected, default to the woo default country? (in my case is set to USA) but if user changes country on woo country field, auto update on phone field, but let user change phone field in case they are traveling?

Hi.

Regarding your first question, it’s should work in incognito too. Can you provide your website details in private message please? I’ll take a look.

Regarding second question, this plugin is designed for Gravity Forms not WooCommerce, so I’m not sure about that..

Presale questions:

1. Can I change the validation language?

2. On which way is the number validated?

3. Can I only select e.g. 3 countries? (Germany, Austria, Switzerland)

Thanks and best regards!

Hi,

1) and 3) are available through adding code snippet at this moment. (I can assist with that.). Also I’m going to add comfortable settings page with such tweaks in the next plugin release which will be in 2-3 weeks.

2). Validation process is working by using custom build of Google’s libphonenumber library. https://github.com/google/libphonenumber

Hi, I have a presale question

when i see your plugin demo. i choose Afghanistan then write 009809129497949 the number correct with +9809129497948 and its valid to send. but the country code for Afghanistan is +93

I see some other add-on for gravity have this problem.if you solved this problem i buy this plugin because this item is too much important for me.

Hi,

This how “Google libphonenumber” utility script works. Once you enter 009809129497949 it will format phone to 9809129497948 where first two digits are “98” which is Iran country phone code (+98), so flag will changed automatically change to Iran.

Also plugin can be easily modified if you need only “Afghanistan” or only few other countries in dropdown.

Hi Alex, thanks for your plugin. I just bought it and installed. Quick question. Is there any way we can switch-on the intl. option on an already existing phone field. I see that the option only appears on NEW phone fields.

If it is not possible, I will create them as new ones.

Thanks for your support!

Hi, thanks for your question.

You know.. it’s looking like a small bug, I’ll will fix it in the next version.

Thanks!

Nice Job, Congrats :)

Great Work, Congratulations GLWS :)

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey