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

    Is it possible to place an X above the iframe embedded form to close it?

    Asked by doriss on March 15, 2016 at 04:31 PM
    By the way, is there a way to add a 'X' to the thank you page so it can be dismissed?
  • Profile Image

    Answered by Ben on March 15, 2016 at 05:03 PM

    This would not be possible to do within the form itself. You would need to add a new element above the form itself in order to be able to achieve this.

    To do this, please add this HTML code right above the iframe:

    <span style="float: right" onclick="document.getElementById('JotFormIFrame').style.display = 'none'; this.style.display = 'none';">X</span>

    What will happen is that once you click on the x - it will hide both the x and the form.

    Do check it out how it works and if that is what you wanted to achieve.