Widget not resizing

  • Profile Image
    GMBC
    Asked on June 01, 2017 at 12:26 PM

    This form has a widget in the middle that only shows all the fields on a (android) phone if you turn the phone in landscape mode. In portrait, it doesn't even give you a scroll option.

  • Profile Image
    BDAVID
    Answered on June 01, 2017 at 02:41 PM

    Please note that the more fields you add in the Configurable List widget, the less responsive it will be in portrait mode. Please try injecting the following code inside the Configurable List widget's custom CSS area:

    @media only screen and (max-device-width:30em){

    table#list {width: 100% !important;}

    textbox, textarea, select{width:100% !important;}

    input[type=text] {width: 100% !important;}

    th {font-size: 10px !important;font-weight: normal !important;}

    }

    @media only screen and (max-device-width:60em){

    table#list {width: 100% !important;}

    textbox, textarea, select{width:100% !important;}

    input[type=text] {width: 100% !important;}

    th {font-size: 10px !important;font-weight: normal !important;}

    }

    Let us know if that helps.

  • Profile Image
    GMBC
    Answered on June 01, 2017 at 03:08 PM

    ...I must take that code off, as an initial view in portrait mode is so crammed, you can't select the fields you want - plus, it will not resize upon turning to landscape mode.

     

    Any other ideas?

  • Profile Image
    BDAVID
    Answered on June 01, 2017 at 06:06 PM

    Then remove my previous code, and inject the following code in your form as shown on this guide: https://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes 

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

    #id_49{

        width: 280% !important;

    }

    }

    That code will allow the user to scroll from left to right to fill all the fields of the configurable list widget:

    Let us know if you need more help.