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

    Can I create the size of a light box to be set as a percentage?

    Asked by tomdrg on September 23, 2011 at 12:19 AM


    Is it possible to set a light box to open based on a % as opposed to a pixel size? I have tried a couple of different things but none have worked correctly. My form is currently set to 650 x 600 pixles but I would like to be able to set the height as a percentage e.g. 80% so I dont run into issues with smaller screens.

    <p><body onload="document.getElementById('lightbox-12293918612').click()">
    <script src="//www.jotform.com/min/g=feedback" type="text/javascript">
    new JotformFeedback({
    windowTitle:'Online Application Form', background:'#4B4B4B',
    <input id="lightbox-12293918612" style="display:none" type="submit" value="lightbox" ></p>


    Page URL:

  • Profile Image
    JotForm Founder

    Answered by aytekin on September 23, 2011 at 09:57 AM

    Why don't you try it? Have you tried changing those height and width values? That might do exactly what you want. 

  • Profile Image
    JotForm Founder

    Answered by aytekin on September 23, 2011 at 09:57 AM

    Sorry, I misunderstood. No, I don't think it is possible to set them as percentage. 

  • Profile Image

    Answered by tomdrg on September 23, 2011 at 09:20 PM
    Hi Aytekin,I tried setting as a percentage but I couldn't get it to work, thought maybe someone else may have figured out a work around but I doesn't sound like it.Thanks, Tom
  • Profile Image

    Answered by 2ezy on November 13, 2013 at 01:07 AM

    Has anyone acheived this yet to set a lightbox size as a % of screen size.

    Thanks Mark

  • Profile Image
    JotForm Support

    Answered by Welvin on November 13, 2013 at 04:33 AM


    As far as I know, there's no update yet with how the way you can setup the Lightbox Popup window. We can give you a workaround, but we would suggest posting this request on a separate thread. You can start a new thread using this link: http://www.jotform.com/answers/answer.php?. Please make sure to provide the Form URL and the specific sizes you want. Example: iPhone or Tablet.