My Lightbox form is not responsive.

  • Profile Image
    txtbookapp
    Asked 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
    ashwin_d
    Answered 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!