[html-formfu] nested/nested checkboxgroup
Carl Franks
fireartist at gmail.com
Thu Apr 16 12:19:03 GMT 2009
2009/4/15 Josef Chladek <josef.chladek at gmail.com>:
> hello,
>
> I can't get the following form to save values correctly, how has the yaml to
> be written that the checked checkboxes are saved correctly to
> "BeraterBranchen"? or is nested/nested not possible?
ugh, just realised I got that wrong,
try again...
> ---
> elements:
> - type: Text
> name: username
> label: '* Username'
> - type: Text
> name: password
> label: '* Password'
> - type: Block
> nested_name: beraterdaten
> elements:
- type: Hidden
name: count # must match PK
> - type: Repeatable
> nested_name: branchen
counter_name: id # must match hidden field name above
> elements:
> - type: Checkboxgroup
> label: 'Branche*'
> name: branche
> model_config:
> model: Frontwave
> resultset: Branche
> id_column: id
> label_column: name
> attributes:
> order_by: 'id asc'
The counter field must be *outside* of the Repeatable
More information about the HTML-FormFu
mailing list