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

    My Lightbox form is not responsive.

    Asked by txtbookapp on February 27, 2017 at 12:40 PM

    Hi.

    Thank you... when I enter the forms directly into my phone's browser, they are responsive... but when they are opened from my website they are not. 

    This was some added code when the lightbox opens from my site. Is this causing any issues?

     

     

    <script src="https://form.jotform.com/static/feedback2.js?3.3.REV" type="text/javascript">

       var parentWidth = window.innerWidth;

     

        if(window.innerWidth <= 799) {parentWidth = window.innerWidth;} else {parentWidth =  800;}

     

    var JFL_61025089274960 = new JotformFeedback({

            formId: '61025089274960',

            base: 'https://form.jotform.com/',

            windowTitle: 'txt-book | iPhone Order Form',

            background: '#999999',

            fontColor: '#ffffff',

            type: 'false',

            height: 800,

            width: parentWidth,

    });

     

    fbq('track', 'InitiateCheckout');

     

     

        </script>

     

     

     

    The link to my jotform is: https://www.jotform.com/txtbookapp/txt-bookform

    My Website is www.txt-book.com

     

    Thank you for any help you can offer!

    Scott

  • Profile Image
    JotForm Support

    Answered by ashwin_d on February 27, 2017 at 12:44 PM

    Hello Scott,

    I would suggest you to get your lightbox embed code again and use that in your webpage to see if that solves your problem. Please use the following lightbox embed code:

     <script src="https://form.jotform.com/static/feedback2.js" type="text/javascript"> var JFL_61025089274960 = new JotformFeedback({ formId: '61025089274960', base: 'https://form.jotform.com/', windowTitle: 'txt-book for iPhone form - BrainTree', background: '#FFA500', fontColor: '#FFFFFF', type: 'false', height: 500, width: 700, openOnLoad: false }); </script> <a class="btn lightbox-61025089274960" style="margin-top: 16px"> txt-book for iPhone form - BrainTree </a>

    Do get back to us if the issue persists.

    Thank you!