Gravity Forms international phone input

Gravity Forms international phone input

This plugin can be used for for easy phone number input in international format with using flags of countries. Consist the option to set country automatically (using client IP) and phone number validation. To start plugin work – you need to activate it and enable “Friendly int. phone field” on your “Phone” field. It’s really simple.

Also check WP WooCommerce version of the plugin here: Link

Features:

  • New! Ability to prevent form submit without correct phone number[s]
  • Comfortable usability via admin panel
  • Works with any Wordpress theme
  • Cross browser compatibility
  • No coding required

Available filters:

  • gfip_prevent_wrong_phone_submit – Prevent form submit without correct phone number[s]
  • gfip_success_message – Custom “Phone is correct” frontend message
  • gfip_fail_message – Custom “Phone is incorrect” frontend message
  • gfi_show_only_countries – accept array of country codes which you want to show in list
  • gfi_initial_country – initial country code, if not set it will take user country country from IP address
  • gfi_preferred_countries – array of preferred countries
Available filters examples:
add_filter('gfip_prevent_wrong_phone_submit', function ($enabled) {
    $enabled = true;
    return $enabled;
}, 10, 1);

 add_filter( 'gfip_success_message', function ($message) {
    $message = 'Correct!';
    return $message;
 }, 10, 1 );

 add_filter( 'gfip_fail_message', function ($message) {
    $message = 'Incorrect :(';
    return $message;
 }, 10, 1 );

add_filter('gfi_show_only_countries', function(){
    return ['ua', 'us', 'gb'];
});

add_filter('gfi_initial_country', function(){
    return 'ua';
});

add_filter('gfi_preferred_countries', function(){
    return ['ua', 'gb'];
});
v 1.2.1 - 09/07/2021
- Changed way of phone validation
(from now phone number will be validated on keyup event instead of blur event)

v 1.2.1 - 24/09/2020
- Localization implemented
- Ability to prevent form submit without correct phone number[s]

v 1.2 - 22/03/2020
- Filters added

v 1.1.1 - 02/11/2019
- Bug fix

v 1.1 - 12/08/2019
- Multiple forms on single page support

v 1.0 - 07/07/2019
- First stable release

Go to Download Back to Blogs
SSL Fixing

Ensure the security of your website with our professional SSL fixing service.

Start from $5 USD
WordPress Setup & Deployment

Get your WordPress website set up and deployed with ease.

Start from $7 USD
Customer Website in Laravel

Custom Laravel development tailored to your business needs.

Start from $500 USD
WordPress Website Development

Complete WordPress website development with themes and plugins.

Start from $100 USD
E-commerce Website Development

Build your online store with custom e-commerce solutions.

Start from $700 USD
Website Maintenance

Keep your website updated and running smoothly with our maintenance services.

Start from $30 USD/month
SEO Optimization

Improve your website's visibility and search engine rankings with our SEO services.

Start from $150 USD
Upwork Profile
Profile Image

Hi, I'm Tarun, a Full-Stack Developer and Ethical Hacker with over 4 years of experience. I specialize in TOR network services, web development, and cybersecurity.

View My Upwork Profile