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 do I add close button on the form?

    Asked by Eduardo on July 06, 2015 at 03:21 PM

    I´m trying to add a "close" button to a pop-up form, for which I included a text, and with the html editor, added the following:

    <a target="_blank" href="JavaScript:window.close()">CLOSE</a>

    I had this for a long time, but now it doesn´t work.

    Any ideas? Options?

    Thank you.

    Regards,

    Eduardo

    PD. In the page bellow, you have to hit "subscríbase al newsletter" and the pop-up window will appear.

    Page URL:
    http://www.armadillos.com.ar/marketing/contacto/

    in pop-up form and long time href
  • Profile Image
    JotForm Support

    Answered by Kiran on July 06, 2015 at 04:29 PM

    Unfortunately, it is not possible to inject any javascript code to the form. This has been removed from JotForm long time ago due to security reasons. Instead of popup, you may consider using a lightbox form.

    Please refer to the guide below on how to use the lightbox forms.

    http://www.jotform.com/help/220-How-to-Create-a-Lightbox-Form

    Hope this information helps.

  • Profile Image

    Answered by armadill on July 07, 2015 at 09:08 AM
    New response received
    Thank you. It helped.
    How does it respond in mobile equipments (celulars)?

    Thanks.
    Eduardo
    ...
  • Profile Image
    JotForm Support

    Answered by Kiran on July 07, 2015 at 09:23 AM

    Great! We are glad to see that Lightbox embed method helped you. I've moved your other question on viewing the form on mobiles to a new thread and shall be answered shortly.

    http://www.jotform.com/answers/604592

    Thank you.