What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Delaying the lightbox pop up

    Asked by rock1113 on February 05, 2015 at 11:48 AM
    delay delaying lightbox pop ups
  • Profile Image
    JotForm Support

    Answered by Jan on February 05, 2015 at 01:04 PM

    Hi,

    Are you referring to the lightbox form? If yes, then that is possible.

    Actually, we already have a guide for that. Please check this guide on How to Auto-popup a Lightbox Form. Please refer to section B. It indicates that you need to get the lightbox embed code first, then add id="lightboxdelay" inside the anchor tag. After that, you need to add this script below the lightbox embed code.

    <script language="JavaScript">

    var delayseconds = 5;

        function pause() {

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

        }

       function whatToDo() {

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

        }

    window.onload = pause;

    </script>

    The value 5 means 5 seconds before it pop ups.

     

    Hope this helps. Thank you!