[html-formfu] Accessing a form element which is not in the table

Carl Franks fireartist at gmail.com
Fri Dec 18 10:37:00 GMT 2009


2009/12/17 Octavian Râşniţă <orasnita at gmail.com>:
> Hi,
>
> Is it possible to access (in a DBIx::Class inflator) an HTML::FormFu element
> that doesn't have a corresponding field in the db table?
>
> I need to let the user specify an option in a separate form field
> (checkbox), and depending on that option to replace or not replace another
> field in the database, but the value of that checkbox should not be entered
> in the database because there is no field for it there.

I suspect this logic should be handled by the form - not the database layer.
I'd suggest writing a HTML::FormFu::Transformer subclass to do it.

Carl



More information about the HTML-FormFu mailing list