On Wednesday 19 September 2007 12:10:20 Carl Franks wrote: > On 19/09/2007, Cosmin Budrica <[EMAIL PROTECTED]> wrote: > > $relationship->populate_from_formfu( > > $form, > > ); > > > > Works great, but what if I have another column in database that is not > > present on the form? Like an auto generated password. > > How do I add a value to it? > > Could always do after populating $relationship with an update, but that > > messes the "not null" constraint that a password should have. > > Probably the simplest way that already works would be, e.g.: > > my $passwd = generate_passwd(); > > $form->add_valid( passwd => $passwd ); > > $resultset->populate_from_formfu( $form ); > > add_valid() works for fieldnames that don't exist in the form.
Thanks Carl, I wasn't aware of that. Greets, Mario _______________________________________________ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu