Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter shahadatuk

    (@shahadatuk)

    Still waiting for your response

    Plugin Contributor damiarita

    (@damiarita)

    Hi shahadatuk,

    Sorry for the late reply. I have missed your first post. I just received the notification email of the second one.

    Here is what happens:
    The javascript of the plugin executes this code when the page is loaded:

    jQuery(".wpcf7-intl-tel").intlTelInput({
      initialCountry: "auto",
      utilsScript: wpcf7_utils_url,
      geoIpLookup: function(callback) {
        jQuery.get('https://ipinfo.io', function() {}, "jsonp").always(function(resp) {
          var countryCode = (resp && resp.country) ? resp.country : "";
          callback(countryCode);
        });
      }
    });

    Aparently, the input in your popup is does not exist yet at that time.
    There are two ways you can solve it.

    1. When you execute the JS that opens the popup, make sure you execute the code above too
    2. Make sure your input is there in a hidden div with the original html so that the first time the above code is executed, it finds id

    I hope this fixes your issue.

    Please, let me know how it ended up.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcode on popup problem’ is closed to new replies.