• Resolved lavreniuka

    (@lavreniuka)


    Hi! Thanks for a great plugin.

    It worked correctly for a long time. (example https://prntscr.com/k1yt4y) But today I faced with an issue. Flag placeholder doesn’t work anymore and users see an only grey rectangle instead of the flag of their country. (example https://prntscr.com/k1ziez)
    I didn’t change anything on my website and, I think it’s the issue with the plugin.

    Could you fix it?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hey,

    Replace this code in script.min.js “/wp-content/plugins/international-telephone-input-for-contact-form-7/script.min.js”

    Code:

    var intl_tel_default_setting={initialCountry:"auto",utilsScript:wpcf7_utils_url,geoIpLookup:function(t){jQuery.get("//ipinfo.io",function(){},"jsonp").always(function(e){var n=e&&e.country?e.country:"";t(n)})}};jQuery(".wpcf7-intl-tel").each(function(){var t=jQuery(this),e={};void 0!=t.data("preferredcountries")&&""!=t.data("preferredcountries")&&(e.preferredCountries=t.data("preferredcountries").split("-")),t.intlTelInput(Object.assign({},intl_tel_default_setting,e));var n=t.parents("span")[0];t.parents("form").submit(function(){jQuery(n).children("input.wpcf7-intl-tel-full").val(t.intlTelInput("getNumber")),jQuery(n).children("input.wpcf7-intl-tel-country-name").val(t.intlTelInput("getSelectedCountryData").name),jQuery(n).children("input.wpcf7-intl-tel-country-code").val(t.intlTelInput("getSelectedCountryData").dialCode),jQuery(n).children("input.wpcf7-intl-tel-country-iso2").val(t.intlTelInput("getSelectedCountryData").iso2)})});

Viewing 1 replies (of 1 total)
  • The topic ‘An issue with a flag placeholder International Telephone Input Contact form 7’ is closed to new replies.