webpaul
webpaul

Reputation: 156

Drupal 7: make values of a field dependant on other field value

I created a content type with different kinds of fields (text, dates, entity relation...). I have 2 dropdown fields (related to 2 taxonomies). I would like that the second dropdown values change based on the value of the first dropdown.

I found the module Dynamic dependent fields (https://www.drupal.org/project/ddf) but after installing (and enabling) it I cannot find any configuration about it.

Could you help me? Thanks

Update: I found the Reference field option limit module (https://www.drupal.org/project/reference_option_limit) but after enabling it I don't know where to set what I need.

Upvotes: 0

Views: 4956

Answers (2)

2pha
2pha

Reputation: 10155

Having a look at the source of the module, it looks like there should be a setting when editing a select field.
You may want to consider a different module though, such as:
Conditional fields or
Field conditional states

This is assuming that the dropdowns are not just different levels of a single taxonomy, which the other answer about hierarchy select would be a better option.
EDIT, reading your question again I see it is 2 different taxonomies so Hierarchy select probably wont work for you.

Upvotes: 1

Djouuuuh
Djouuuuh

Reputation: 1167

It is possible and easy to achieve that with this module: https://www.drupal.org/project/hierarchical_select. It is the most popular I think. Maybe you could have a look at it.

I personaly don't know the module you've installed.

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

Upvotes: 0

Related Questions