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

  • procurement
    Asked on April 22, 2019 at 1: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!

    Jotform Thread 1800070 Screenshot
  • Welvin Support Team Lead
    Replied on April 22, 2019 at 2: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