Document how to target inside CCK fieldsets
frankcarey - February 28, 2008 - 22:32
| Project: | Prepopulate |
| Version: | 5.x-1.2 |
| Component: | Documentation |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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?

#1
here i started the documentation page.. can someone add it to the project page?
#2
http://drupal.org/node/228167
oops here is the link
#3
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]=booYou 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.
#4
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.