Field Collection has made some extremely large (800 line items) complex forms much simpler to maintain and I thank you for that. My question is more of one of approach. Some of the children field collection fields are dependent on fields located in the parent entity. I am struggling for a simple solution to pass these values down the line in order to preserve the field dependencies that the child fields in the various field collections can use.

Think of one entity that needs to continue to dynamically respond with conditional fields (works normally without the field collection introduction):

Entity:
- Field A
- Field Collection A
-- Field b (Dependent on Field A selection)
-Field Collection B
-- Field C (Still dependent on Field A selection).

I know that the dependencies still work within the field collections themselves, but struggling to bridge the gap.

Comments

jmuzz’s picture

Issue summary: View changes
Status: Active » Fixed

I doubt there is a simple solution to do this. I would look at using the #states api and setting something up for your specific use case in a form_alter hook.

Hope this helps.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.