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
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

frankcarey - February 28, 2008 - 22:39

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

#2

frankcarey - February 28, 2008 - 22:39

http://drupal.org/node/228167

oops here is the link

#3

add1sun - March 16, 2008 - 14:51
Title:Fields belonging to filedsets don't work... need more info or patch» Document how to target inside CCK fieldsets
Category:bug report» 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.

#4

RobertNelsonVance - June 3, 2008 - 15:22

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.

 
 

Drupal is a registered trademark of Dries Buytaert.