Preview Before Submit widget: Layout and button not correct

  • melodicsounds
    Asked on April 11, 2016 at 2:20 PM

    b). In the same form if in your "Description" field you have a big big text or a long text, while being on the preview widget its look really messed up... there is no responsive in there... the screen goes as big as the text lenght... see pictures:

     

    Preview Before Submit widget: Layout and button not correct Image 1 Screenshot 30

    In this pic you see the really long text making all the form become bigger to the right.

     

    Preview Before Submit widget: Layout and button not correct Image 2 Screenshot 41

    see the submit button becoming big to the right...

  • Charlie
    Replied on April 11, 2016 at 3:26 PM

    In my first post, could you please try enabling the mobile responsive option in the Form Designer Tool.

    After that, the only problem that I'm seeing is the buttons. How do you want the buttons to be formatted in the mobile view?

    Here's my updated CSS code, the code referring to the preview containers button is at the last part and is bolded:

    @media screen and (max-width: 640px), screen and (max-device-width: 780px) and (orientation: portrait), screen and (max-device-width: 780px) and (orientation: landscape){

        /* Credit Card Number*/

    .form-address-table > tbody:nth-child(1) > tr:nth-child(3) > td:nth-child(1) > span:nth-child(1) {

            width : 70% !important;

        }

        .form-textbox.cc_number {

            width : 95% !important;

        }

        /* Security Code*/

    .form-address-table > tbody:nth-child(1) > tr:nth-child(3) > td:nth-child(1) > span:nth-child(2) {

            width : 28% !important;

        }

        .form-textbox.cc_ccv {

            width : 100% !important;

        }

        /*Expiration month*/

    .form-address-table > tbody:nth-child(1) > tr:nth-child(4) > td:nth-child(1) > span:nth-child(1) {

            width : 48% !important;

        }

        .form-dropdown.cc_exp_month {

            width : 93% !important;

        }

        /*Expiration Year*/

    .form-address-table > tbody:nth-child(1) > tr:nth-child(4) > td:nth-child(1) > span:nth-child(2) {

            width : 50% !important;

        }

        .form-dropdown.cc_exp_year {

            width : 100% !important;

        }

        /* Preview containers margin */

        #previewContainer > ul > li > #previewButtons {

        margin-left: 20% !important;

        margin-right: 20% !important;

    }

       /* Buttons */

        #previewContainer > ul > li > #previewButtons > button {

            width: 100px !important;

        }

    }

     

    This is how it looks like:

    Preview Before Submit widget: Layout and button not correct Image 1 Screenshot 20

     

    Let us know if that works. Again, here's my updated cloned form: https://form.jotform.com/61016127995963