[html-formfu] Re: H::F::Model::DBIC and adding multiple empty rows

Lance A. Brown lance at bearcircle.net
Mon Apr 20 12:36:59 GMT 2009


Carl Franks said the following on 4/20/2009 5:40 AM:
> When you're modifying the client-side form with JavaScript, are you
> updating the 'counter' hidden field, so the form builds the correct
> number of Repeatable reps during $form->process() ?

Yes, but with Model::DBIC involved it looks like the number of
Repeatable reps is being determined by what's in the DB, not the counter
variable.

> 
> Also, for the new rows, are you correctly incrementing the field names?

Yep.

> 
> If it doesn't seem to work - dump $form->params(), so you can see
> which params are being accepted.

I'll do that and get back to you.

--[Lance]

-- 
 GPG Fingerprint: 409B A409 A38D 92BF 15D9 6EEE 9A82 F2AC 69AC 07B9
 CACert.org Assurer



More information about the HTML-FormFu mailing list