Title: Shortcode on popup problem
Last modified: September 4, 2016

---

# Shortcode on popup problem

 *  Resolved [shahadatuk](https://wordpress.org/support/users/shahadatuk/)
 * (@shahadatuk)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/shortcode-on-popup-problem/)
 * Hi, I am using your plugin and it is working fine on page, but I want to use 
   it in popup. Unfortunately it is not working on Popup.
 * The page link is [http://www.dhkbd.com/contact-us](http://www.dhkbd.com/contact-us)
 * Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [shahadatuk](https://wordpress.org/support/users/shahadatuk/)
 * (@shahadatuk)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/shortcode-on-popup-problem/#post-8171184)
 * Still waiting for your response
 *  Plugin Contributor [damiarita](https://wordpress.org/support/users/damiarita/)
 * (@damiarita)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/shortcode-on-popup-problem/#post-8172377)
 * 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('http://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.

 * ![](https://ps.w.org/international-telephone-input-for-contact-form-7/assets/
   icon-256x256.png?rev=2277878)
 * [International Telephone Input for Contact Form 7](https://wordpress.org/plugins/international-telephone-input-for-contact-form-7/)
 * [Support Threads](https://wordpress.org/support/plugin/international-telephone-input-for-contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/international-telephone-input-for-contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/international-telephone-input-for-contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/international-telephone-input-for-contact-form-7/reviews/)

## Tags

 * [popup](https://wordpress.org/support/topic-tag/popup/)

 * 2 replies
 * 2 participants
 * Last reply from: [damiarita](https://wordpress.org/support/users/damiarita/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/shortcode-on-popup-problem/#post-8172377)
 * Status: resolved