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

    how to show close icon after 5 seconds

    Asked by clicksemnet on November 15, 2013 at 05:29 AM

    I'm trying to hide the close icon and show 5 seconds later. hiding works with css aplied as:

    but i can't show it again with javascript timer can you please give a clue where the things mess up. i'm suspicious about the id name which i guess ".jt-feedback" may be wrong.

    thanks in advance.

    <style> .jt-feedback div img { display: none; } </style>
    <script type="text/javascript">
    window.setTimeout("Tick()", 5000);
    function Tick() {document.getElementById(".jt-feedback").style.display="block";

    }






    the sample page is at

    www.clicksem.net/iletisim

     


    icon style name block
  • Profile Image
    JotForm Support

    Answered by jonathan on November 15, 2013 at 06:50 AM

    Hi,

    Can you please guide us how to view your form?

    I could not seem to find a an embedded JotForm form from this website http://www.clicksem.net/iletisim

    Will await your updated response.

    Thanks.

  • Profile Image

    Answered by clicksemnet on November 15, 2013 at 08:59 AM

    Hi,

    you can see the form all over this site: http://www.clicksem.net

     

    the close icon has no id nor class name. so I'm not able to access it from javascript. As you can see from css code , close button is a img which is in a div which is in  another div with class 'jt-feedback'.

    how can I access that img at runtime?

  • Profile Image
    JotForm Support

    Answered by KadeJM on November 15, 2013 at 11:43 AM

    Sorry, But I am seeing the same problem my colleague is mentioning. The only thing I was able to find is what appears to be a Pop-up Form which has our overlay but I am unable to translate what's inside it to then locate the forms since upon clicking on them it then only reroutes me to your facebook page. 

    This screenshot show's our overlay that we normally see where our forms are being used for us. So this is the closest that I can find to this though I don't see any forms being shown.

     

     

    Are you referring to closing this box maybe then? The close button actually has a Span ID which is "         "

  • Profile Image
    JotForm Support

    Answered by KadeJM on November 15, 2013 at 11:48 AM

    Pardon, that was incorrect sorry about that. That close-bar is something only our Support Team can see, my fault. Please disregard that part although there should be another way around this to resolve this. 

    Is this the window you are trying to close and are unable to do so though?

  • Profile Image

    Answered by clicksemnet on November 15, 2013 at 02:30 PM

    yes this is the window. it does not have a form at the moment. we will add form later but now we want to use this page.

  • Profile Image
    JotForm Support

    Answered by ardy0689 on November 15, 2013 at 04:43 PM

    Hello,

    Please try to use this Javascript code. It contains 2 functions 1 to show and 1 to hide the close button from the feedback button.

    http://pastiebin.com/528693fc5842b

    Please take note the code section where it says:

    document.getElementById('jotform-feedback-33174760911958').onclick = function() {

    You should change the highlighted part with your form ID. Also take note that due to possible server lags this does not check the form page load if it is completed, if you want to achieve 5 seconds please double it and put 10000 as the value in this code:

    setTimeout(function() { showFeedbackCloseButton(); }, 10000);

    Please let us know if you need further assistance. Thank you