HIGHLY RECOMMENDED WEB HOSTING PROVIDER

Gravity Forms international phone input

Gravity Forms international phone input

LIVE PREVIEW

Gravity Forms international phone input

LIVE PREVIEW

This plugin can be utilized for for simple phone quantity input in international format with utilizing flags of nations. Consist the choice to set nation routinely (utilizing shopper IP) and phone quantity validation.
To begin plugin work – it is advisable activate it and allow “Friendly int. phone subject” in your “Phone” subject. It’s actually easy.

Also verify WP WooCommerce model of the plugin right here: Link

Features:

  • New! Ability to forestall type submit with out appropriate phone quantity[s]
  • Comfortable usability through admin panel
  • Works with any WordPress theme
  • Cross browser compatibility
  • No coding required

Available filters:

  • gfip_prevent_wrong_phone_submit – Prevent type submit with out appropriate phone quantity[s]
  • gfip_success_message – Custom “Phone is appropriate” frontend message
  • gfip_fail_message – Custom “Phone is inaccurate” frontend message
  • gfi_show_only_countries – settle for array of nation codes which you wish to present in record
  • gfi_initial_country – preliminary nation code, if not set it’ll take person nation nation from IP tackle
  • gfi_preferred_countries – array of most popular international locations

Available filters examples:

add_filter('gfip_prevent_wrong_phone_submit', operate ($enabled) {
    $enabled = true;
    return $enabled;
}, 10, 1);

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

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

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

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

add_filter('gfi_preferred_countries', operate(){
    return ['ua', 'gb'];
});
v 1.2.1 - 09/07/2021
- Changed manner of phone validation
(from now phone quantity will likely be validated on keyup occasion as an alternative of blur occasion)

v 1.2.1 - 24/09/2020
- Localization carried out
- Ability to forestall type submit with out appropriate phone quantity[s]

v 1.2 - 22/03/2020
- Filters added

v 1.1.1 - 02/11/2019
- Bug repair

v 1.1 - 12/08/2019
- Multiple kinds on single web page help

v 1.0 - 07/07/2019
- First steady launch

LIVE PREVIEWBUY FOR $20