I have category structure like this:

  1. Science
  • Physics
  • Chemistry
    • Inorganic Chemistry
      • references
    • Organic Chemistry
      • references
    • Nuclear Chemistry
      • Charts
  • Biology
  • Fun stuff
    • Travel
    • Fishing

    Question: if a user selects a top category, say "Science", I only want the subcategories under that parent category shown for further selection. (So that user will not pick "Science" and "Fishing" together). This comes to filtering out the categories based on parent selection. Can this be done in Drupal?
    Multiple selection in texonomy is not what I want, because (1) it can become very long, (2) it does not prevent user choosing the wrong combination.

    Comments

    samwarren’s picture

    What I want is basically this:
    Two vocabulary input lists. The 1st one lists all the first level choices. The 2nd one is empty until the one is chosen from the 1st one. Then the list in the 2nd is populated based on the choice of first one.
    I think someone had this solved already, I just couldn't find it, maybe I didn't have the right term for the search.

    Thanks,

    samwarren’s picture

    Hello?
    Is my question too simple or too hard?

    gav240z’s picture

    I want to do the same thing...

    Here is my scenario

    Location
    - Europe
    - Ireland
    - UK
    - Americas
    - North America
    - Canada
    - Brazil
    - Asia
    - Singapore
    - Australia
    - Africa
    - South Africa

    So when a user selects their location a sub-category asking for their more detailed location with a prepopulated list of locations becomes available.

    Did you find what you were looking for? I haven't been able to find it either, but perhaps its the keywords i'm using to find it.

    samwarren’s picture

    Hierarchical Select module is the answer.
    Don't worry it is a development module. The functions included so far works great. It is dev module because some additional features are to be added.