On 1 March 2010 15:43, Brian Cassidy <[email protected]> wrote: > This may be a "Monday" issue, but I can't seem to get this simple > example to work. I simply want to be able to enter 3 "sponsors" in my > create form (note, the snippet below is part of a larger form). I only > ever get 1 set of name-type pairs. > > Can anyone hit me with a clue bat? > > - type: Hidden > name: sponsors_count > - type: Repeatable > nested_name: sponsors > counter_name: sponsors_count > attributes: > class: repeatable > model_config: > empty_rows: 3 > elements: > - type: Select > label: Sponsor Type > name: sponsor_type_id > empty_first: 1 > model_config: > resultset: SponsorType > - type: Text > label: Name > name: name > --
I think you'll also need to set 'new_rows_max'. Cheers, Carl _______________________________________________ HTML-FormFu mailing list [email protected] http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
