[html-formfu] nested/nested checkboxgroup

Carl Franks fireartist at gmail.com
Thu Apr 16 10:59:44 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?

There's a couple of parts missing from the config - see below...

> ---
> elements:
>  - type: Text
>    name: username
>    label: '* Username'
>  - type: Text
>    name: password
>    label: '* Password'
>  - type: Block
>    nested_name: beraterdaten
>    elements:
>          - type: Repeatable
>            nested_name: branchen
             counter_name: id # must match hidden field name below
>            elements:
                - type: Hidden
                  name: id # must match PK
>               - type: Checkboxgroup
>                 label: 'Branche*'
>                 name: branche
>                 model_config:
>                   model: Frontwave
>                   resultset: Branche
>                   id_column: id
>                   label_column: name
>                   attributes:
>                        order_by: 'id asc'



More information about the HTML-FormFu mailing list