On Tue, Mar 2, 2010 at 5:09 AM, Carl Franks <fireart...@gmail.com> 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' })->repeat(3);
>    $form->get_all_element('count')->default(3);
>    $form->process;
> }

Not sure how I missed that before. *sigh*

Thanks Carl,

-- 
Brian Cassidy (brian.cass...@gmail.com)

_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to