Hierarchical Select


This module defines the "hierarchical_select" form element, which is a greatly enhanced way for letting the user select items in a hierarchy.

Hierarchical Select has the ability to save the entire lineage of a selection or only the "deepest" selection. You can configure it to force the user to make a selection as deep as possible in the tree, or allow the user to select an item anywhere in the tree. Levels can be labeled, you can configure limit the number of items that can be selected, configure a title for the dropbox, choose a site-wide animation delay, and so on. You can even create new items and levels through Hierarchical Select!

For a good overview of what Hierarchical Select can do, look at this demo!

I'm focusing on maintaining only the Drupal 7 version of Hierarchical Select. That means I'll only commit RTBC patches for the D6 version relatively quickly. If a co-maintainer steps up to help maintain the Drupal 6, I'd be happy to accept him/her! :)

Drupal 7 version

The Drupal 7 version integrates with:

  • Taxonomy (Drupal core)
  • Menu (Drupal core)

Please see TODO.txt to see what still needs to be ported.

Thus, it does not yet integrate with: Forum (Drupal core), Views, etc. If you need support for something else than Taxonomy, please either contribute the required patches or sponsor them! Due to a bug in the Drupal.org packaging scripts (see #1244792: In .info files, "core=" values are overridden by packaging scripts), modules that are marked as not yet ported (and thus cannot be enabled), are not marked as such when you download the tarballs, so be ware!

The rewrite of HS for Drupal 7 (Hierarchical Select 4!) is now postponed indefinitely. It will depend on my employer (I'm currently looking for a job). There also is a roadmap for HS 4, which I've updated accordingly to this delayed ETA.

Drupal 6 version

The Drupal 6 version integrates with:

Note: the Content Taxonomy module integration is no longer supported. Patches are accepted and committed, but the maintainer does no longer want to fix bugs with this integration. The reason is simple. It's a nightmare. It makes one suicidal. Content Taxonomy is rotten. It needs to die. Thank god it won't be necessary to port this functionality to Drupal 7.

Drupal 5 version

The Drupal 5 version integrates with:

  • Book (Drupal core)
  • Forum (Drupal core)
  • Menu (Drupal core)
  • Taxonomy (Drupal core)
  • Content Taxonomy
  • Views — in combination with Taxonomy & Content Taxonomy

The Drupal 5 version has been maintained for years and has received feature equality with the Drupal 6 version. This has cost me a *lot* of my free time. Very few module maintainers have done this. But with Drupal 5 unsupported since the Drupal 7 release, the Drupal 5 release will also no longer be maintained. Only security fixes will still be applied. But with a very solid security track record, I don't expect that to be necessary.


  • Ability to create new items: The Worx Company
  • Ability to only show items that are associated with at least one entity: Merge
  • Views 2 support: Merge
  • Initial Drupal 7 port + follow-up fixes: PingV
  • Port of "save lineage" functionality to Drupal 7: Bancard Data Service


Wim Leers

The author can be contacted for paid customizations of this module as well as Drupal consulting and development.

Project Information