mario.minati at googlemail.com
Wed Sep 19 13:00:37 GMT 2007
On Wednesday 19 September 2007 12:10:20 Carl Franks wrote:
> On 19/09/2007, Cosmin Budrica <cosmin at sns.ro> 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.
I wasn't aware of that.
More information about the HTML-FormFu