Is it possible to narrow the Gratuity and Total fields below for mobile devices? Thanks

  • JBL
    Asked on February 6, 2017 at 7:39 PM

    Not related, but is it possible to narrow the Gratuity and Total fields below for mobile devices?

     Is it possible to narrow the Gratuity and Total fields below for mobile devices? Thanks Image 1 Screenshot 20

    Thanks

  • Kevin Support Team Lead
    Replied on February 6, 2017 at 10:37 PM

    You may try injecting this CSS code: @media screen and (max-width: 480px){

    input#input_42 {

        min-width: 20% !important;

        max-width: 100% !important;

        width: 20% !important;

    }

     

    #input_26_donation{

        min-width: 20% !important;

        max-width: 100% !important;

        width: 20% !important;   

    }

     

    To inject the code in the new v4 builder, click on the designer icon on the right side of the form builder: 

    Is it possible to narrow the Gratuity and Total fields below for mobile devices? Thanks Image 1 Screenshot 30

    Go to the CSS tab and paste the code there: 

    Is it possible to narrow the Gratuity and Total fields below for mobile devices? Thanks Image 2 Screenshot 41

    Hope this helps. 

  • JBL
    Replied on February 7, 2017 at 12:35 AM

    Hi Kevin,

    I tried injecting the code but it does not work

    Is it possible to narrow the Gratuity and Total fields below for mobile devices? Thanks Image 1 Screenshot 20

    I had another open ticket which was also just resolved so I injected both sets of code (which is why it shows from line 22). I tried them together, and then separately (in case they conflict). Either way they both don't work.

  • Rose
    Replied on February 7, 2017 at 3:05 AM

    I cloned your form to test on my side. I can say that, the css code provided by my colleague does not works for only Ipad but works for other mobile devices as you can see here below. Is it possible to narrow the Gratuity and Total fields below for mobile devices? Thanks Image 1 Screenshot 30

    To make it narrow also at Ipad, please inject following css code. 

    @media only screen and (max-device-width: 768px){ /*tablet*/

    input#input_42 {

            min-width : 20% !important;

            max-width : 100% !important;

            width : 20% !important;

        }

     

        #input_26_donation {

            min-width : 20% !important;

            max-width : 100% !important;

            width : 20% !important;

        }

    }

     

    After that, your form will seen at Ipad, as following.

     

    Is it possible to narrow the Gratuity and Total fields below for mobile devices? Thanks Image 2 Screenshot 41

     

    If you have more questions, please feel free to contact us. We would be pleased to assist you. 

  • JBL
    Replied on February 7, 2017 at 4:00 PM

    This works fine now. Thank you.