Module Monday: Chosen

Module Monday: Chosen

User-friendly select boxes

For a long time now, Drupal has been using the idea of the “auto-complete” for such things as taxonomy tags, node references, and user references. While convenient in the fact that it’s ajaxified and will display relevant options as you begin to type, it’s long been a bit of a problem for users who really have no pre-conceived notion of how typical auto-complete form controls work, or for those with slower connections who end up waiting while they stare at a little spinning icon for their results to be returned to them.
Select boxes are a universally recognized form control, and also a valid alternative to each of the field types I described above which typically utilize the auto-complete widget within Drupal. However, for many use cases, the typical select box widget can have a ton of results and become a very long list of options to scroll down through and chose from.
The auto-complete widget was originally created in an attempt to mitigate this UX problem. But I submit to you an attractive alternative to the typical solution this problem: Chosen.
Chosen is a javascript library built by the incredible people who brought you the time tracking software, Harvest. The library is an open-source project on Github and simply seeks to “… [make] long, unwieldy select boxes more user friendly.” It can take your typical select box from this:

Leave a Reply

Your email address will not be published.