Re: [html-formfu] Repeatable elements, number of empty rows on a "create" form.

2010-03-02 Thread Brian Cassidy
On Tue, Mar 2, 2010 at 5:09 AM, Carl Franks wrote: > If you're calling $form->model->default_values() > it should automatically expand the repeatable block. > > If you're not, you'll need to do something like: > > if ( ! $form->submitted ) { >    $form->get_all_element({ type => 'Repeatable' })->r

Re: [html-formfu] Repeatable elements, number of empty rows on a "create" form.

2010-03-02 Thread Carl Franks
On 1 March 2010 18:56, Brian Cassidy wrote: > On Mon, Mar 1, 2010 at 2:52 PM, Carl Franks wrote: >> >> I think you'll also need to set 'new_rows_max'. > > Adding "new_rows_max: 3" shows no change in the rendered form. Ah, you didn't say at what stage the problem was ;) If you're calling $form->

Re: [html-formfu] Repeatable elements, number of empty rows on a "create" form.

2010-03-01 Thread Brian Cassidy
On Mon, Mar 1, 2010 at 2:52 PM, Carl Franks wrote: > > I think you'll also need to set 'new_rows_max'. Adding "new_rows_max: 3" shows no change in the rendered form. -- Brian Cassidy (brian.cass...@gmail.com) ___ HTML-FormFu mailing list HTML-FormFu@

Re: [html-formfu] Repeatable elements, number of empty rows on a "create" form.

2010-03-01 Thread Carl Franks
On 1 March 2010 15:43, Brian Cassidy 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. > >

[html-formfu] Repeatable elements, number of empty rows on a "create" form.

2010-03-01 Thread Brian Cassidy
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 nam