0

I want field with entity reference showed as select but based on value from the another field in the same form [radio button field] for example the entity reference field will list these values

-entity 1
-entity 2
-entity 3
-entity 4

and the field radio button will hold countries like so:

-England
-Germany

notice that the entities reference (Content Type) has field called country, so when i check the value "England" i want the field entity to be filtered based on England for ex: -entity 1 & -entity 4 and same if i clicked Germany.

is that applicable in Drupal 7 even by Views module, or i have to do it custom !?

2 Answers 2

1

You can use Dynamic dependent fields module.

Project page says:

Makes field value or options depend on other field values when editing entity.

1
  • Notice the filed is Entity Reference not Select with options May 19, 2014 at 17:37
1

i think it is done by Conditional Fields see tutorial here

1
  • Hi @Praveen, please refrain from posting a one-link answer by describing the important steps from the tutorial in your answer. Thanks! Feb 10, 2017 at 5:57

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.