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 can I edit lightbox script ?

    Asked by TeamSnotBox on August 24, 2014 at 03:23 PM

    I want my lightbox to open only when the window width is greater than 700px. Is there a way I can edit the source code or disable the script src attribute to do this? 

    source lightbox lightbox script
  • Profile Image
    JotForm Support

    Answered by jonathan on August 24, 2014 at 05:50 PM

    Hi,

    You may need to add a Mobile Responsive Widgetinto the form so that it will auto respond to the viewer size of the browser being used.

    And yes you can also edit the lightbox script. When you get the lightbox code you can still edit it before embedding.

    Example, if this is your lightbox code

    new JotformFeedback({
    formId:'21357249698871',
    base:'http://jotform.co/',
    windowTitle:'Cool Contact Form',
    background:'#FFA500',
    fontColor:'#FFFFFF',
    type:false,
    height:500,
    width:700
    });

    You can still edit height and width parameter.

    Check this related user guide also.

    https://www.jotform.com/help/203-How-to-Auto-popup-a-Lightbox-Form

    Hope this help. Inform us if you need further assistance.

    Thanks.