How do I add close button on the form?

  • Profile Image
    Eduardo
    Asked 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.

  • Profile Image
    Kiran
    Answered 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
    armadill
    Answered 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
    Kiran
    Answered 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.