How to have a delayed pop-up JotForm

  • Profile Image
    goalclicks
    Asked on December 12, 2014 at 08:04 PM
    One last question, does jot form have the ability to perform a delayed pop up like what I'm using. I could not find it when I poked around.
  • Profile Image
    Shadae
    Answered on December 13, 2014 at 06:09 AM

    Hi goalclicks,

    Unfortunately a delayed pop-up can not be created using JotForm only. However you can use our Lightbox embed code, you can then edit and add some additional code to your website to get the delayed feature.

    <script src="https://secure.jotform.com/static/feedback2.js?3.2.4606" type="text/javascript">

    var JFL_43456104372955 = new JotformFeedback({

    formId:'43456104372955',

    base:'https://secure.jotform.com/',

    windowTitle:'Car Match Popup',

    background:'#FFA500',

    fontColor:'#FFFFFF',

    type:false,

    height:500,

    width:700,

    });

    </script>

    <a id="lightboxdelay" class="lightbox-43456104372955" style="cursor:pointer;color:blue;text-decoration:underline;display:none;">Car Match Popup</a>

    <script language="JavaScript">

    var delayseconds = 30;

        function pause() {

        myTimer = setTimeout('whatToDo()', delayseconds * 1000)

        }

       function whatToDo() {

    document.getElementById('lightboxdelay').click();

        }

    window.onload = pause;

    </script>

    You can read more in this guide: https://www.jotform.com/help/203-How-to-Auto-popup-a-Lightbox-Form 

     

    I hope this helps, please inform us if you need further assistance.