Adding some extra elements to the pop up so it only pops up once

  • tidybooks
    Asked on March 12, 2014 at 12:44 PM

    Hi 

     

    Ive installed a pop up on our site using the code given in another post. How do I make it so it only pops up for 1 instance at the moment its it reappers each time you refresh the page. The code is below. Thanks

     

    <script type="text/javascript" src="//cdn.jotfor.ms/static/feedback2.js?3.2.742">// <![CDATA[

    new JotformFeedback({

    formId:'40584713236959',

    windowTitle:'Title Me',

    background:'#FFA500',

    fontColor:'#FFFFFF',

    type:1,

    height:500,

    width:700

    });

    // ]]></script>

    <p><a id="lightboxdelay" class="lightbox-40584713236959" style="cursor: pointer; color: blue; text-decoration: underline; display: none;">Home page pop final</a></p>

    <script type="text/javascript" language="JavaScript">// <![CDATA[

    var delayseconds = 4;

        function pause() {

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

        }

       function whatToDo() {

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

        }

    window.onload = pause;

    // ]]></script>

  • pinoytech
    Replied on March 12, 2014 at 3:28 PM

    Hi,

    It seems like you already manage to configure your form code to auto pop-up. Here's what I see on my end upon checking your form: http://www.screencast.com/t/KNYADt8M0X

    Feel free to contact us again if you need further assistance.

  • tidybooks
    Replied on March 13, 2014 at 5:19 AM

    Hi yep that bits ok it’s just that we are going to put this on our homepage but we only want it to appear once. At the moment if were to leave the page then come back again  it will pop up again. I want to make the pop up as unintrusive as possible so looking to know what peice of code to add to make it so it will only pop up only once for each person who arrives whether they sign up or not

     

    Hope that makes sense thanks

  • abajan Jotform Support
    Replied on March 13, 2014 at 10:15 AM

    Please have a look at this guide and let us know if the solution is feasible in your case. This thread may also be helpful.


    Thanks