I am wondering if there is a way to populate a taxonomy dropdown menu with the child terms of a selection made in another taxonomy dropdown menu. I would like to have two taxonomy dropdown menus, one for genre (parent) and one for sub-genre (child). When the a selection is made in the genre menu, I'd like the child sub-genre terms for that genre appear in the menu. Is there a way to implement this?

1 Answer 1


In Drupal 6, a good way to do this is to use a single taxonomy vocabulary and make the children terms selectable via Hierarchical Select. This will give you a single menu of the parents and then when users select one of the parent terms the menu of related children will automatically appear.

However, Hierarchical Select hasn't yet been fully ported to Drupal 7 (most notably, Views support does not work at all) and the timetable to do so is unknown.

For Drupal 7, you could try using the Conditional Fields module (or just use the States API directly if you're a developer) to set up logic to show/hide child menus based on the value of the parent menu. However, doing so has two big drawbacks:

  1. Users will see all fields if they have Javascript disabled.
  2. Depending on the number of items you have, this can get very complicated.
  • I'm on D7, so those are two large drawbacks indeed. That's unfortunate. Thanks for the thorough answer though, as always.
    – Mrweiner
    Jun 22, 2012 at 1:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.