Changing drop-down default size | Community
Skip to main content

Changing drop-down default size

  • October 27, 2023
  • 5 replies
  • 0 views

Is there a way to change the number of items that are shown by default in a dropdown field?  Now I think it displays around 5 entries before the user must scroll.  However we are concerned that some users won't bother to do that and check the remaining possibilities.  That also goes for the multi-select dropdown.

Could we make the default as 10 or 15 entries displayed when the dropdown is selected?

5 replies

Francis14
  • October 31, 2023
Hello Mark,
 
Zendesk allows you to customize certain aspects of your ticket forms, including dropdown fields, but I'm afraid that it doesn't provide a built-in option to change the default number of items shown in a dropdown field. The number of items displayed in a dropdown is typically determined by the user's browser and is consistent with standard browser behavior.

  • Author
  • October 31, 2023

I was able to do this by changing the style.css file:

/* here we increase the max number of items to display in a dropdown by default */
.nesty-panel {
  max-height:300px!important;
}


Francis14
  • October 31, 2023

Hello Mark - I would like to express my gratitude for your valuable contribution in sharing this information with us. Your insights are greatly appreciated.

 

 

  • Author
  • October 31, 2023

My pleasure... the same can be done with multi-selects (editing the theme's style.css file):

.hc-multiselect-menu {
  max-height:300px!important;
}


Francis14
  • October 31, 2023
Thanks again, Mark!