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 !?

1

You can use Dynamic dependent fields module.

Project page says:

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

  • Notice the filed is Entity Reference not Select with options – mohamad salama May 19 '14 at 17:37
1

i think it is done by Conditional Fields see tutorial here

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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