Pagebreak buttons are not properly aligned on embedded form

  • MuhammadUmair016
    Asked on June 13, 2020 at 3:53 PM

    I have faced a problem with the button view. I have made a form for my client and now he had integrated the form into his website. When form opens the form in chrome, safari, opera, and any browser through jotform site link. It works fine but my client opens the same one through his website, it shows button problem. I have attached the picture

    It shows like this when open through jotform site link


    1592077414104125830 954853178297936 7823 Screenshot 10

    But open through the site it shows like this

    1592077977PNG image Screenshot 21

    Some time size of the button also decreases. It should show the same as in the previous picture

  • Elton Support Team Lead
    Replied on June 13, 2020 at 7:21 PM

    We also couldn't reproduce the problem on the standalone form. Can you please provide the exact page where your form is embedded on this site https://www.frankandbeans.com.au/ so we can inspect it on our browser?

    Thanks

  • MuhammadUmair016
    Replied on June 14, 2020 at 2:03 AM

    Here is the Link for the form.

    https://www.frankandbeans.com.au/returns

    If you open it in your mobile not in the mobile view through the website, you will be able to see the issue.

    When you open through the site you will be able to see the issue that button placement is up and down while if I open through the jotform site, it work side by side as in the previous pictures

  • Ariel JotForm Support
    Replied on June 14, 2020 at 2:52 AM

    Hi there,

    Thank you for your message.

    Please inject the following custom CSS code in your form:

    @media screen and (max-width: 736px) {
        .form-pagebreak {
            justify-content: center;
            display: flex;
            flex-wrap: wrap-reverse;
        }
        .form-pagebreak > div{
            margin: 3px;
        }
    }

    Once applied, the buttons should look like this.

    15921174382020 06 14 14 49 52 Screenshot 10


    Please give it a shot and let us know how it goes.

    Related Guide: How to Inject Custom CSS Codes

  • MuhammadUmair016
    Replied on June 14, 2020 at 3:03 AM

    Sir

    Sorry but may i am not able to convey my complete message 


    I want the button side by side not up and down

    Like in the below picture. It should display like this on my website 1592118178Screenshot 20200613 193355 Screenshot 10

  • Flavio_A
    Replied on June 14, 2020 at 4:29 AM

    Hi @MuhammadUmair016

    Please try using the following code:

    @media screen and (max-width: 736px) {

        .form-pagebreak {

            justify-content: center;

            display: flex;

            flex-wrap: nowrap;

        }

        .form-pagebreak > div{

            margin: 3px;

        }

    }

  • MuhammadUmair016
    Replied on June 14, 2020 at 11:10 AM

    Sir,

    You still cant get my question. Let me explain

    When I see the form using the jotform site link. Following button, appearance occurs in mobile view

    Link of form through jotform site

    https://form.jotform.com/201382853420449

    Mobile view


    1592147044104125830 954853178297936 7823 Screenshot 10

    When I embedded the same form into the site, following  appearance occur of buttons in mobile view 

    Link of website form

    https://www.frankandbeans.com.au/returns

    Mobile view


    1592147196104296552 563625820995481 4843 Screenshot 21


    I don't want this. I want the view like below in my website1592147251104125830 954853178297936 7823 Screenshot 32

    The CSS code you provide me is not correct for me. I don't want that view.

    Remember My problem with the button just occurs in the mobile view. I just want to be set them

  • Amin JotForm Support
    Replied on June 14, 2020 at 11:55 AM

    "I want the button side by side not up and down"

    Do note that back/next buttons on your embedded form already show up side-by-side as shown below:

    1592149880Screenshot 2020 06 14 Dashboar Screenshot 10

    Please try with a different device/browser and get back to us if the issue persists.

  • MuhammadUmair016
    Replied on June 14, 2020 at 4:16 PM

    Sir, I have checked in different browsers and the problem still occurs.

    I have attached the most recent view through the browser. have a look. The problem still occur


    1592165768104232968 942642349537076 1171 Screenshot 10

    Please help me to solve this problem

  • Amin JotForm Support
    Replied on June 14, 2020 at 5:39 PM

    Please try injecting the following CSS code:

    @media screen and (max-width: 480px), screen and (max-device-width: 767px) and (orientation: portrait), screen and (max-device-width: 415px) and (orientation: landscape){

    .form-pagebreak-back-container, .form-pagebreak-next-container {

        width: 48% !important;

    }

    }

    Also, please make sure you check it using Chrome Browser.

  • MuhammadUmair016
    Replied on June 16, 2020 at 12:13 PM

    Sir,

    I still have a problem with the mobile view. Any other solution regarding my above problem. I have provided everything which I have to explain.


    Please help me.

  • Kevin Support Team Lead
    Replied on June 16, 2020 at 2:44 PM

    I was able to replicate the issue on my end: 

    15923328972020 06 16 12h23 54 Screenshot 10

    I was able to fix this after injecting this CSS code: 

    @media screen and (max-width: 480px){

                .form-all .form-pagebreak-back-container, .form-all .form-pagebreak-next-container {

                    width: 50% !important;

                }

        }


    Guide: https://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes

    Result: 

    15923329422020 06 16 12h34 53 Screenshot 21

    I hope this helps.