Form loaded after 5 sec

  • Profile Image
    idtrip
    Asked on August 19, 2015 at 07:28 AM

    Hello, i've created a "lightbox" which is loaded on pageload.

    i'm wondering is there a way to make it load after several second after page loaded? for example 5sec.

    what script should i add?

    Thanks :)

     

    <script src="//d2g9qbzl5h49rh.cloudfront.net/static/feedback2.js?3.3.8689" type="text/javascript">

    var JFL_52302478853458 = new JotformFeedback({

    formId:'52302478853458',

    base:'http://jotform.me/',

    windowTitle:'Newsletter',

    background:'#FFA500',

    fontColor:'#FFFFFF',

    type:1,

    height:480,

    width:300,

    openOnLoad:true

    });

    </script>

  • Profile Image
    mert
    Answered on August 19, 2015 at 09:17 AM

    Try with this one. It works.

    This one is a modified lightbox script.

    <script src="//d2g9qbzl5h49rh.cloudfront.net/static/feedback2.js?3.3.8689" type="text/javascript">

    function openFeedBack(){
        var JFL_52302478853458 = new JotformFeedback({

        formId:'52302478853458',

        base:'http://jotform.me/',

        windowTitle:'Newsletter',

        background:'#FFA500',

        fontColor:'#FFFFFF',

        type:1,

        height:480,

        width:300,

        openOnLoad:true
        });
    }

    setTimeout(function(){
         openFeedBack();
    },5000);

    </script>

    <body>
    </body>

     

     With yellow marked value, you can adjust timeout value. In here, it is set for 5 seconds.