Drop down with "Allow multiple" on renders badly in Chrome

  • amya
    Asked on September 6, 2015 at 11:49 AM

    Shows the whole list of states when not clicked. Works OK now I have changed to not allow multiple (as it should be)

    Gerry

  • Boris
    Replied on September 6, 2015 at 5:06 PM

    I can see what you mean, and I can see that it is caused by the CSS styling in the theme that your form is using. This rule in particular is responsible:

    .form-dropdown {
      margin: 0;
      border-color: #a6a6a6;
      -webkit-appearance: menulist!important;
      -moz-appearance: menulist!important;
      appearance: menulist!important;
      border-width: 1px;
    }

    There is an additional problem that is preventing us from fixing it, where the custom CSS code on your form appears to be having errors in it.

    In order to fix it, I would recommend completely removing your custom CSS code. You can do this by going to Setup & Embed > Preferences > Form Styles, and removing everything from the Inject Custom CSS field:

    Drop down with Allow multiple on renders badly in Chrome Image 1 Screenshot 40

    After that is done, we simply need to add the CSS code that will fix the drop down in Chrome:

    .form-dropdown {
      -webkit-appearance: menulist-button !important;
    }

    You should add this code by opening the Designer (Setup & Embed > Designer):

    Drop down with Allow multiple on renders badly in Chrome Image 2 Screenshot 51

    Once there, switch to the CSS tab, and paste that code into the textbox:

    Drop down with Allow multiple on renders badly in Chrome Image 3 Screenshot 62

    With that done, save your form, and it should display correctly from now on - even with Allow Multiple set to ON. You can see a demo form with the fixes applied, here:

    https://secure.jotformpro.com/form/52486328574970

    Please let us know if you need further assistance.