Increase size of form list dropdown
We use the guide template the came with our system. When submitting a ticket the user is presented with a dropdown list of the forms they can choose from. Currently the list displays 5 forms before scrolling. Is there a way to increase the height of this dropdown list so it shows more than 5 forms without scrolling?
-
Hey Hey!
So there are two ways to achieve this.
.nesty-panel is the class that Zendesk adds for dropdowns such as this one, or any other dropdowns on your form. The simplest way to achieve this would be to increase the size for all dropdowns on your forms
.nesty-panel {max-height: 200px;}If you need to only target the Form dropdown then you could do this through Javascript by doing something like:$(document).ready(function() {document.getElementsByClassName('nesty-panel')[0].setAttribute('style', 'max-height:200px');}); -
That worked perfectly, thank you. I had previously seen a comment about changing the max-height in the .nesty-panel object, but my style.css file did not include a .nesty-panel item, so I didn't think it would work. Simply adding the object did the trick.
Thank you Ben!
サインインしてコメントを残してください。
2 コメント