Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter gstar

    (@gstar)

    This solved it!

    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)})});

    This made it work! Thank you @gstar

    However when you pasted the code all the quotes were replaced with typographer quotes
    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)})});

    It doesnt seem to work for internet explorer to me… can anyone test as well?

    Thread Starter gstar

    (@gstar)

    Works perfectly!

    Ah great stuff – it’s working again. Thanks! ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘No longer working’ is closed to new replies.