I have CCK fields that were living under a fieldset..

for the life of me I couldn't get them to pre-populate... then once I removed the fieldset they worked fine.

Is there additional syntax to access them if they are under a fieldset? maybe a documentation page would be of use here?

Comments

frankcarey’s picture

here i started the documentation page.. can someone add it to the project page?

frankcarey’s picture

http://drupal.org/node/228167

oops here is the link

add1sun’s picture

Title: Fields belonging to filedsets don't work... need more info or patch » Document how to target inside CCK fieldsets
Category: bug » task

You should be able to add the fieldset name to the beginning like so:
(assuming the fieldset group name is texty bits and my field is sdfsdf)

?edit[group_texty_bits][field_sdfsdf][0][value]=boo

You can see this info if you do a print_r on the form to see all the nested array goodness but a shorthand that should work is to look at the fieldset class name (class="group-texty-bits") and use that *but with underscores* instead of dashes.

Changing title to reflect a docs update is needed for this.

RobertNelsonVance’s picture

Right. This DOES work. This should be added to the doc page as it has the potential to be a very common issue and it would save people lots of searching through all the bug reports/feature requests.

jbrauer’s picture

Status: Active » Closed (fixed)

Closing issues for unsupported 5.x version