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

  • Profile Image
    tomdrg
    Asked on September 23, 2011 at 12:19 AM

    Hi,

    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({
    formId:'12293918612',
    base:'http://www.jotform.com/',
    windowTitle:'Online Application Form', background:'#4B4B4B',
    fontColor:'#FFFFFF',
    type:1,
    height:650,
    width:600
    });
    </script>
    <input id="lightbox-12293918612" style="display:none" type="submit" value="lightbox" ></p>

    Cheers,
    Tom

  • Profile Image
    aytekin
    Answered 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
    aytekin
    Answered 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
    tomdrg
    Answered 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
    2ezy
    Answered 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
    Welvin
    Answered on November 13, 2013 at 04:33 AM

    @2ezy,

    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.

    Thanks