Can I get the form to delay showing up for 5 seconds?

  • Profile Image
    Kenzart
    Asked on September 02, 2016 at 05:20 PM

    A lot of popups do that.

    Thanks, you guys are great

  • Profile Image
    Kevin_G
    Answered on September 02, 2016 at 08:38 PM

    You will need to customize a bit the embedded code, this JavaScript method will help you to set a delay to trigger an action: 

    setTimeout(function(){

    // Form's code  here

    }, 5000);

    So the code that you will embed should be like this: 

    <script src="https://form.jotform.com/static/feedback2.js?3.3.REV" type="text/javascript">

          setTimeout(function(){

            var JFL_62421478750154 = new JotformFeedback({

              formId: '62421478750154',

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

              windowTitle: 'Body By Phoenix',

              background: '#f50505',

              fontColor: '#FFFFFF',

              type: 'false',

              height: 500,

              width: 600,

              openOnLoad: true

            });

         }, 5000);

        </script>

    Highlighted on green color is the function that you will add and highlighted on yellow color is the form's code. 

    The value for 5000 is set in milliseconds so it is the same as you were setting 5 seconds, here is also a link that will help you with the setTimeout() method: http://www.w3schools.com/jsref/met_win_settimeout.asp 

    Hope this helps. 

  • Profile Image
    Kenzart
    Answered on September 03, 2016 at 07:45 PM
    Hey Kevin,You guys are the BEST!Every time I ask a question, you provide EXCELLENT, SPEEDY, ACCURATE service.I will definitely recommend you to all my computer friends.Thanks AgainKen RussoKenZart.com714-335-5568
    ...
  • Profile Image
    Kevin_G
    Answered on September 03, 2016 at 10:30 PM

    Thank you for your kind words Ken. 

    It is glad to know that you like our support, it's a pleasure for us to help our JotForm users, thank you for recommending JotForm as well. 

    Please if you need more help, feel free to let us know, we will be glad to assist you.