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, this is a presale question. I have a meta value “from_phone” where I store the phone in this format (+12015550123). I use a function like this to populate my From Phone field, via Advanced> Allow field:to be populated dinamically -> from_phone. add_filter( 'gform_field_value_from_phone', 'get_fromphone' ); function get_fromphone( $value ) { return get_post_meta(get_the_ID(), 'from_phone', true); }

using ur plugin, when I load the number from my meta value, will it display like this? (with country code) +12015550123 or just (wo country code) 2015550123? Im looking for a solution to load with country code. Thanks

Hello, it will be full international phone number, like: +12015550123

Is there a way I can rename the countries. For example currently it passes value as India (भारत).....I want to pass only India

Hi Alex, the plugin is working fine on my parent site: Mantracare.org (https://mantracare.org/online-therapy-counseling/)

However, recently I added another wordpress installation in the same site inside the find folder…https://mantracare.org/find/usa/indianapolis-therapists/

The IP tracking of the plugin is not working the sub installation. Please help

Please ignore this…as I was able to fix this

Hi, I am using this plugin since last month, but the issue is it is showing the wrong number but not stopping the form to submit the entry if the number is wrong the form should not submit if it’s a required field. Can you please tell me how to achieve that?

Hi… i just purchased this plugin and it seems to be working well, however, i noticed it works with ipinfo.io and there is most liky a per day query limit. Do you know what the limit is? Is there a way to connect my ipinfo.io account to this plgin or is there a way to increase the daily limit to 50k?

Hello, please try this:

1. Open gravity-forms-int-phone/js/main.js 2. Go to line 32 3. Replace https://ipinfo.io with https://ipinfo.io/json?token=YOUR_TOKEN_HERE

This should make the trick.

GREAT! This worked. Thank you.

Hi… i just purchased this plugin and it seems to be working well, however, i noticed it works with ipinfo.io and there is most liky a per day query limit. Do you know what the limit is? Is there a way to connect my ipinfo.io account to this plgin or is there a way to increase the daily limit to 10k-20k?

Hi Alex This is Nish. I was looking for a plugin that will allow me to show country code in the phone column and came across your plugin. Before I could go ahead and purchase your plugin, can you please confirm if your plugin records the country code on the backend i.e., the contact form that I receive on my email when someone submits their info?

Hello, phone number will be in the international format i.e: +38055555555

Hi Alex, we use the code you provided to add the Country/Country code to hidden fields sent with the forms. Im most cases this works, but some times it doesnt and the fields remain empty. any ready reason you can think of why ? perhaps some Ad Blocker or such. can you recommend a more reliable method ? i can send you the URL privately.

jQuery(document).ready(function() {
       const telInput_org = document.querySelector("#input_31_15");    
        telInput_org.addEventListener("countrychange", function(e) {
        const selectedCountryData = 
                jQuery(telInput_org).intlTelInput('getSelectedCountryData');
        jQuery("#input_31_17").val(selectedCountryData.dialCode);
        jQuery("#input_31_18").val(selectedCountryData.name);
      });
});

Hi joy818,

Hard to say.. However if you have js some error/exception in the console then your custom js code may not work.

Hello, installed and working but, the message valid or invalid, loos liker vertical, how can put it horizontal. its dificult to read that. the form is here: https://videolaringoscopio.com/sorteo/

Hi – Thanks for the plugin. It works great with the normal forms/ page.

However, when we try this with elementor popup – this stops working.. Please check this link:

https://mantracare.org/employee-wellness-eap/

Click download guide button – the flag doesn’t show up in the work phone field

Any solutions??

Hello,

I didn’t find that “download guide” button. Could you show me where is it?

Hi,

How would I go about prepopulating the phone number field with a query string parameter? I tried doing +11234567899 for US phone numbers, but the country drop-down menu was empty.

Also, I made a comment but haven’t heard back, so figured I’d also ask here. While looking at Chrome Dev Tools I see you make a call to get information about the country based on IP address. That call just updates your field, would you have any input/recommendations on how I can use the additional information that’s obtained to populate other fields dynamically?

Hello, please send a private message. I’ll try take a look.

Just sent a message. Thanks!

So, I purchased the plugin and it works out of the box! Awesome, does exactly what I would like. Just a couple of questions, I see you make a call to https://ipinfo.io/ when the page loads and that retrieves quite a bit of information. Currently, I retrieve that information by a paid-third party after the post passes spam checks, validation, etc and put it in hidden/admin fields. If possible, how would you recommend accessing the data from that call and storing those values in other fields? Ie, the request gets the city how could I populate a hidden “city” field on the form?

Also, just to verify – I didn’t have to put any purchase code in anywhere. Is that right?

Thanks, AJ

Hello,

I tried to put the code below in functions.php to prevent submitting the form when phone number syntax is wrong:

add_filter(‘gfip_prevent_wrong_phone_submit’, function ($enabled) { $enabled = true; return $enabled; }, 10, 1);

Unfortunately it doesn’t seem to work as expected.

Form URL is this one : https://idwebformation.pxc.fr/inscription/

Can you please help me ?

Thanks,

hi bro how can I translate errors and notices of this plugin https://codecanyon.net/item/gravity-forms-international-phone-input/24106613/support

please help Thanks Shervin

Hello,

You can use “Loco Translate” plugin to translate all strings to the desired language.

Hi Alex,

Sorry but I pasted the code you gave me in functions.php and it seems to not prevent submitting the form.

Is it because I use it in ajax mode or maybe because it’s a multi-step form ?

You can see the form here if necessary : https://idwebformation.pxc.fr/inscription/

Thanks in advance for your help.

Regards,

Hi,

Can you please answer to my question ? I’ve purchased your plugin and I’m stuck.

Thanks

Hi – I wish to buy the plugin.

But my site uses AMP. Just want to confirm if this plugin works with AMP?

Hello,

Sorry, it will not work for you.

Hello,

We are adding function:

add_filter(‘gfip_prevent_wrong_phone_submit’, function ($enabled) { $enabled = false; return $enabled; }, 10, 1);

But we can still see validation happening. We want to disable validation.

Hello, please provide your website details in a private message. I’ll take a look.

Hello We need to disable IP lookup to comply with GDPR requirements – how can we do this please?

Hello, at this moment it’s possible only by overriding the file.

I’ll implement this option in the next plugin release, but for now you can use:

1. Open “class-frontend.php” file

2. Go to line 43

3. Set ”$autoset_ip = true;” to ”$autoset_ip = false;”

Let me know if it helps.

Does the validation work when NEXT is clicked in multi step forms? Can the default country code be set to one country (UK)? I really only need this for the number validation.

Excellent! So in my understanding that means that it checks this is an active or ‘real’ live phone number – correct?

No, it checks the possibility that phone number may exist, but it can’t guarantee that it’s “real number” and used by someone.

Thanks. I’ll read up on libphonenumber a little more than probably test and purchase – really helpful – thanks.

Is there a working demo I can see ?

When I add multiple gravity forms in Elementor the flags disappear on one of the forms. I figured I can add one with shortcode and one with the WordPress widget but not both. Any ideas how to fix it?

Hello, please provide your website details in a private message. I’ll take a look.

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