How to Implement Chosen in Drupal 7?

| | 1 min read

For one of my project, I have implemented the Chosen module to display a list of content in a select box with user-friendly option style. I used the following configurations:

  • First I downloaded Chosen module for a Drupal 7 environment and stored it in 'sites/all/modules/contrib' directory and enabled the same.
  • For the working of Chosen module we need its libraries, so first you have to download the libraries API, save it in 'contrib/' folder and enable the same.
  • Then download the Chosen JavaScript file from Extract the entire contents of the archive into the 'sites/all/libraries' directory on your site.
  • In the Chosen configuration form (admin/config/user-interface/chosen) fill the necessary settings.

Hope this is useful.