How can I get my lightbox newsletter form to adjust to the correct width on mobile?

  • Profile Image
    Asked on July 20, 2016 at 05:15 AM

    The lightbox appears after 15 seconds. Far too wide on mobile devices. I've tried changing the width to 100% but that didn't work. I've also tried ticking the box for making the form 'responsive'.

    This is the script:

    <script src="" type="text/javascript">

          var JFL_62002097936354 = new JotformFeedback({

            formId: '62002097936354',

            base: '',

            windowTitle: 'Like to hear about every new post? (I won t send you ****).',

            background: '#b4e4b8',

            fontColor: '#FFFFFF',

            type: '1',

            height: 500,

            width: 700,

            openOnLoad: false



          <a id="lightboxdelay" class="btn lightbox-62002097936354" style="margin-top: 16px;display:none;">

            Like to hear about every new post? (I won't send you ****).


    <script language="JavaScript">

    var delayseconds = 15;

        function pause() {

        myTimer = setTimeout('whatToDo()', delayseconds * 1000)


       function whatToDo() {



    window.onload = pause;



    Any help much appreciated!

  • Profile Image
    Answered on July 20, 2016 at 09:56 AM

    Unfortunately, the Lightbox embed code is not (yet) mobile responsive. However, I do have a temporary workaround that you can use. You can refer to this link for the custom script that I have made: 

    I hope that helps.