Sub-label on dropdown item with 150px width not going full width?

  • Profile Image
    procurement
    Asked on April 22, 2019 at 01:12 PM

    Hello,

    I would like the sublabel on my dropdown item to go full width, but would like to limit the width of the dropdown to 150px. Is this possible? It seems the width of the dropdown is effecting the width of the sublabel underneath.


    Thanks!

  • Profile Image
    Welvin
    Answered on April 22, 2019 at 02:27 PM

    It seems that the overall styling of the form affects the width of the dropdown. Inject the following custom CSS codes to override that and fix the issue.

    [data-type="control_dropdown"] .form-input, [data-type="control_dropdown"] .form-input-wide {

        width: auto !important;

    }

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