[html-formfu] constraint in repeatable

Carl Franks fireartist at gmail.com
Sat Dec 19 11:13:40 GMT 2009


2009/12/19 Josef Chladek <josef.chladek at gmail.com>:
>
> when I follow the changes described here:
> http://lists.scsys.co.uk/pipermail/html-formfu/2009-January/001665.html
>
> I get it working.

That's refering to $block->repeat() being called, which only happens during
$form->model->default_values()
... so the question is why are you needing to call that *after* a form
submission?

Generally, the logic should be:

if ( $form->submitted_and_valid ) {
    $form->model->update;
}
elsif ( ! $form->submitted ) {
    $form->default_values;
}

What does your controller look like?

Carl



More information about the HTML-FormFu mailing list