My problem is :
I have created a "Field Collection" field in the "Profile 2" module, and add a dependence ... but, doesn't work...
(there is a screenshot of my problem)

Comments

Fanaile’s picture

I'm having the same issue. I'm using Profile2 and Profile2Reg Path so that people can choose to sign up an individual account or a club account for sports; When they choose individual, they get the choice between signing up as, say, player, coach, umpire etc. And there is a field collection for "Players" to fill out that should be hidden when they are signing up as something else, but I can't get it to hide.

It is working with other fields on the profiles, just not the field collection.

I did try the fix posted here, and that did work for some of the other issues I was having with dependencies inside the field collection that were not saving; but now I need the entire field collection to hide pending the value of the widget before.

henryk805’s picture

I am having the same problem. In Profile2, conditional fields work for single fields, but not for field_collections. In regular nodes, it works just fine. Any help would be greatly appreciated.

mahyarsbt’s picture

subscribing

I have same problem with field collection / field group on profile 2

please help

mrded’s picture

We use Profile2 (7.x-1.3) with Field Collection (7.x-1.0-beta5), and it works perfect!

katski’s picture

Issue summary: View changes

Hey - I've just hit this issue and was wondering if anyone found a fix. I've tried using an older version of field coll (beta5) as mentioned by mrded but no joy.

david.qdoscc’s picture

I'm also having this problem. Has anyone found a workaround yet?

StG’s picture

This issue is still there... I found an almost working patch: https://www.drupal.org/project/conditional_fields/issues/1440822#comment... I copy-pasted the code because conditional_fields_element_after_build($element, &$form_state) function changed since then. This works on profile creating but when I edit an existing profile the state of the dependee doesn't make any difference.