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 a lightbox in the form of a button rather than text?

    Asked by hattyjackson on June 16, 2016 at 06:00 AM
    Add Lightbox Button Image How to
  • Profile Image
    JotForm Support

    Answered by John_Benson on June 16, 2016 at 07:26 AM

    The default Lightbox code is using a text link.

    <script src="https://form.jotform.com/static/feedback2.js?3.3.REV" type="text/javascript"> var JFL_61672640541958 = new JotformFeedback({ formId: '61672640541958', base: 'https://form.jotform.com/', windowTitle: 'Lightbox Button', background: '#FFA500', fontColor: '#FFFFFF', type: 'false', height: 500, width: 700, openOnLoad: false }); </script> <a class="btn lightbox-61672640541958" style="margin-top: 16px"> Lightbox Button </a>

    You can replace the text with an image button. Here's an example:

     <script src="https://form.jotform.com/static/feedback2.js?3.3.REV" type="text/javascript"> var JFL_61672640541958 = new JotformFeedback({ formId: '61672640541958', base: 'https://form.jotform.com/', windowTitle: 'Lightbox Button', background: '#FFA500', fontColor: '#FFFFFF', type: 'false', height: 500, width: 700, openOnLoad: false }); </script> <a class="btn lightbox-61672640541958" style="margin-top: 16px"> <img src="imagebutton.jpg">  </a>

    Please make sure to specify the file path (src) of the image button.

    Hope that works. Let us know if you need further help. Thanks!