Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be great if I could use an Entity reference filed to control another field. So if a user selects a particular entity (node) in one reference field it would enable another dependent field.
Comments
Comment #1
jzornig CreditAttribution: jzornig commentedJust found that this actually does work.
Brilliant, just brilliant!!!
Thanks for the module.
Comment #2
peijun CreditAttribution: peijun commentedHi jzornig,
I tried to use an entity reference field as dependee and found it did not work. I got an error:
Notice: Undefined index: value in conditional_fields_dependency_edit_form_submit() (line 767 of /var/www/openatrium-7.x-2.18/profiles/openatrium/modules/contrib/conditional_fields/includes/conditional_fields.admin.inc).
By the way, I used ondition has value: has at least one of the values.
Could you please give me some hits?
Thanks,
peijun
Comment #3
morybel CreditAttribution: morybel commentedI have the same error..
I want to show/hide a field based on the Organic Group.
Condition: field is visible when Groups audience has at least one of the values: "30".
Notice: Undefined index: value in conditional_fields_dependency_edit_form_submit() (line 767 of /home/public_html/sites/all/modules/conditional_fields/includes/conditional_fields.admin.inc).
This tread is about the same error, don't know if it helps.
https://www.drupal.org/node/2144729