How can I edit lightbox script ?

  • Profile Image
    TeamSnotBox
    Asked 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? 

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