I have a node that is very simple, it is only a holder for an unlimited field collection, so a user can make one or more referrals at one time. Looking at the Dev tab on a created referral, I see the structure is
node object
field_sponsor_refrerral
und
0
value -> 31
I am wanting to set a field inside that field collection on the form, but since a field collection is in essence another entity in the D7 structure, is this possible? I have tried /node/add/club-referral?edit[field_sponsor_referral][und][0][field_referral_type][und][0][value]=sponsor with various [und] and [0] combinations.
Referral Type is a List type, Select list widget, with the allowed values
cash|Cash Donor
item|Item Donor
sponsor|Sponsor
volunteer|Volunteer

I am not sure if this ability is already in this version, planned soon, or not planned for the foreseeable future and I should code a patch for it (which I might could do next week). Any help or information you could offer would be appreciated.

Comments

earwax’s picture

As you can tell by now, there is no direction or guidance on this. You should just code the patch as you see fit that can fulfill your needs and make it flexible enough that others can use. Then just submit a patch and cross your fingers