Can I make the iframe or lightbox forms appear automatically on my page?

  • Profile Image
    Gary
    Asked on February 26, 2013 at 12:02 PM

    I'd love for people to come to my site, and after 20 seconds, have the contact form automatically pop up as an iframe or lightbox.  Is it possible to do this without having them click a button?  Thanks so much!

  • Profile Image
    jefreylandicho
    Answered on February 26, 2013 at 01:05 PM

    Yes that is quite possible. What you need to do is create a separate page(myform.html) and embed the form using IFRAME or the script embed code.

    After creating the page containing the form embed script, insert the code located in the link below in your website header were you want the form popup to appear.

    http://pastie.org/6342822 

     

    The value 20000 is the time equivalent to 20 seconds.

    If you need further assistance, contact us again.

     

     

  • Profile Image
    sidharth_kch
    Answered on February 26, 2013 at 01:49 PM
    @Gary
    Here is a quick work around if you want to appear your form in a lightbox.
    Steps:
    1. After creating the form go to "Embed Form" and copy the Lightbox embed code.
    2. Copy this code in any file where you want this to open after a certain specified time. Now you edit the last line of the copied code and add the text which is marked in bold below
    <a class="lightbox-________" id="CreateLightBox" style="cursor:pointer;color:blue;text-decoration:underline; visibility:hidden;">test</a>
     
     
    3. Add this code in your <head> section of your file:
    <script language="JavaScript" type="text/javascript">
         function OpenLightBox() {
             document.getElementById('CreateLightBox').click();
         }
    </script>
    <script language="javascript">
        timer = setTimeout("OpenLightBox()", 10000) // This is in mili seconds and  you can change this as per your need
    </script>
    Hope this helps you.
    Thanks,
    Sidharth
  • Profile Image
    EltonCris
    Answered on February 26, 2013 at 02:54 PM

    In addition to my colleagues, we have a guide for that under our User Guide Section. Check this. How to Auto-popup a Lightbox Form

    Thanks!