I have a content type with two taxonomy term reference fields.

I want the second term reference field to show the terms of a different vocabulary depending on the selection made for the first field.

Is there a way to do this?

Comments

tekken’s picture

I think something like View Reference (http://drupal.org/project/viewreference) is needed, but it has to be updated dynamically, depending on the selection of a taxonomy term reference field.

Update: Okay, the Conditional Fields module (http://drupal.org/project/conditional_fields) comes close. But I would need the states of the dependent field change to a different vocabulary. Looks like Dependent Fields (http://drupal.org/project/dependent_fields) is the right module but it's not ported to D7 yet.

Any other suggestions?

johnv’s picture

How would you select the terms?

I have the following use case in mind: a list of documents types (e.g. manual, request form, press release) per department (e.g. HR, PR, Finance).
Each department can create documents. Now I have 2 options:
1. one taxonomy tree where level1=department, level2=document type. However, this leads me to either duplicating the document type, or terms with multiple parents.
2. 2 term reference fields: 1=department, 2=document type.
How to select the possible types per department? Perhaps by creating a term reference field in the department taxonomy..

hassanali20’s picture

Hey!

I'm also having the same situation, what was your solution / module used, can you please share?

I've a three level requirement and the reusable vocabulary need to be referenced at level 3, but as long as we know how to reference a taxonomy term as a child element, then I should be good

please help at the earliest possible.

thanks in advance.