How to implement chosen in drupal 7?

July 19, 2017 - 15:40

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 https://github.com/harvesthq/chosen/releases. 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.

Get Drupal updates straight to your inbox

To prevent automated spam submissions leave this field empty.

Post your comments / questions