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,

That’s indeed a very good idea for a GF plugin, really needed.

Just one question before ordering : does it load any of the infamous and awfully big JS library/css (e.g. bootstrap) ?

Or is it just lightweight pure javascript?

Thanks,

Hello,

It uses js lib which weight is 28.6KB, small script with 50 lines of code and 18.7 KB css file.

Just wondering if this has been tested with the Twilio addon for Gravity forms here: https://www.gravityforms.com/add-ons/twilio/ and if so does it work well?

You can buy the plugin to test it, let me know if it doesn’t work properly, I’ll take a look.

Do you do a refund on it if it does not work? I just want to be sure on this.

Hello,

Could you send me a message via PM form (on my profile page) with temporary admin access please?

Hi there ,

Is it possible to make the form unsubmittable if the phone number validator marks incorrect ?

Thanks in advance

Hello, current version doesn’t support such feature.

Hello,

I am seeing that the flag is working fine when I preview it, but when I publish it the flags don’t appear.

Hello, could you provide your website url in private message please?

How can I prevent the form from being submitted if the number is flagged as an invalid number?

Hi,

The feature will be introduced in the next version.

But if you want it now, you can try to edit “wpisValidateIntPhone” function in phone-validate.js to disable and enable form submit button https://pastebin.com/5hNdntnK

Hi, I am having problems with the Gravity Forms International phone input plugin. No matter what number I enter, I get an “Invalid number” validation message. This was working fine. Wondering if it might be a problem with WordPress 5.4 core update? Do you have any suggestions? Thanks.

Hi! Could you send me a message via PM form (on my profile page) with your website url please?

Hi, we received an update for the plugin with the file name – “gravity-forms-int-phone-plugin.zip”. But when we uploaded this file through wordpress, it says the file already exists. Please guide us with the same. Thank you.

Hi,

You need to remove existing plugin and install a new one after.

How can I “only” display specific countries?

Hi, it’s possible. Please send me a message via PM form (on my profile page)

Hi Alex91ckua, I would like to limit the countries to just two (Netherlands, Belgium). Is this possible with your plugin?

Thanks!

Jaspar

Hi, yeah it’s possible. Please send me a message via PM form (on my profile page)

hey alex, i have an issue with phone fields after activating your plugin, hope you can help me figure out if it’s a bug in plugin or something else.

when your plugin, phone field loses any type of gf validation. i can submit phone field with empty string and get no error. therefore the plugin does not work.

will send screenshot if needed. van also give url and admin.

thanks alex!

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

hi, this is the link

again, if you submit BLANK phone field , it identifies validation and marks field as error. but, if you input wrong number, or even one character (numeric or alpha) then it let’s the form submit with no validation at all. even after your plugin says the error ‘invalid phone’ the gf validation ignores it and still submit.

The phone icons arent appearing on my site anymore. any ideas??

Hi,

Can you provide your website details in private message please? I’ll take a look.

Hi Alex, I’ve found an alternative solution so no need to check the problem I mentioned on the support page and via private message. I’m sure I’ll use your plugin for the next project though. Regards, Matt.

Hi,

Thanks for your message. Can you let know what kind of alternative solution you used? I want to release plugin update soon, so better to know how to catch the bug. :)

Hi Alex, I’ve just purchased this plugin but I can’t see the flag field on the field. I don’t have any JS errors in the console and I can’t see any change to the HTML when I view source.

Here are the steps I have taken: 1. Installed and activated the plugin. 2. Created a new phone field in an existing form. 3. Ticked the ‘Friendly int. phone field’ tickbox. 4. Saved the form. 5. Cleared the site cache and reloaded the page using Ctrl+F5.

I hope you can help. Thanks in advance.

I have three forms that open in different modals on the same page. After enabling the “Friendly int. phone field” on one form, that form and one other failed to load. After some investigation I found if I remove the conditional logic in the second form, it too will appear. In the council log I also get an error of “TypeError: gfpMainJsVars is undefined”. The page is at https://tinyurl.com/y4dpbjmn – click on the three buttons on the right sidebar to open the forms. Thoughts?

Hi,

Could you please provide your website details in private message? I’ll take a look.

Thanks for the fix, and quick response.

Happy to help ;)

Hi there,

There is a styling issue where all the numbers go onto one line:

https://share.getcloudapp.com/yAu4yxq4

See the page here:

https://aps.growthgun.com/contact/

Could I get a fix for this please?

John

Hi,

For some reason website https://aps.growthgun.com/contact/ is not working for me.

Actually.. now it works

Please try to add this CSS code on your website: https://pastebin.com/2mPWE62g

It should fix the problem.

Hello,

How to prevent form submission or prevent jumping to next page if user input value is incorrect?

We need to validate gfrom required phone field via your phone-validate.js code

https://docs.gravityforms.com/gform_validation/

if input field contains invalid phone number, a field must give a validation error when user click on submit button.

I think we need to call this php function with ajax if (telInput.intlTelInput(“isValidNumber”)) is false (when invalid phone number message is appearing)

<?php

add_filter( ‘gform_field_validation’, ‘validate_phone’, 10, 4 ); function validate_phone( $result, $value, $form, $field ) { if ( $field->type == ‘phone’ ) { $result[‘is_valid’] = false; $result[‘message’] = ‘Please enter a valid phone number’; } }

return $result;

?>

Thanks for your idea, I’ll try to implement backend validation in the next plugin version.

Hello,

Here, i am using this plugin but i have one issue when i added a two form in same page than it isn’t working for second one means only working for one form any solution for it?

Thanks,

Hi, this is weird, please provide your website details in private message. I’ll take a look.

is it compatible with wpml and rtl support for arabic lang?

It’s not translated but should work fine.

Javascript error, after I switch on the “friendly int phone field”.

https://international.cedarfinancial.com/debt-collection-california/

Check console error.

For some reason “gform_post_render” event is triggered twice. I’ll fix it in next plugin release. Thanks.

What can I do for now?

I can fix the issue manually on your website, please provide your website details in private message.

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