How to make your forms responsive?

  • MFIRES
    Asked on August 18, 2014 at 10:34 AM

    I'm in test mode and have added a form to my site. My site is responsive but the form is not. When it gets down to phone size, the form gets cut off on the right hand side. Is there a way to have a responsive form that works on all devices?

  • David JotForm Support
    Replied on August 18, 2014 at 12:47 PM

    HI,

    Our forms are already optimized for mobile views so it is built in on the forms already. However, if you like to customize it further, you can use these CSS codes to make your form mobile ready! :)

    @media only screen

    and (min-device-width : 320px)

    and (max-device-width : 480px) {

    .form-all {

    width: 320px !important;

    }

    .form-line {

    padding-top: 0px !important;

    padding-bottom: 0px !important;

    padding-left: 3px !important;

    }

    img.form-image {

    max-width: 100% !important;

    height: auto !important;

    }

    #id_1.form-line {

    padding-left: 36px !important;

    padding-right: 36px !important;

    }

    }

    Simply inject this CSS to your form. How to Inject Custom CSS Codes to your Form

    You can also try the mobile responsive widget:

    http://widgets.jotform.com/app/mobile_responsive

     

    If neither of these options work for you, please let us know and we will be happy to see what we can do.

    Thank you for using JotForm!