add_valid() should work, but takes 2 args - ( $name, $value ) > > [snip] > > _______________________________________________ > HTML-FormFu mailing list > HTML-FormFu@lists.scsys.co.uk > http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu >
Hrm. Then that means my order of things is off. I was doing this in my controller: if ($form->submitted) { $converted_form = do_conversion($form); $converted_form->process; if ($converted_form->valid) { $converted_form->model->update($c->model('DB::Foo')); } } Also, on the transformers: Are those run both ways (IE, when loading and processing the form) or only one way (when processing the form) ? I've considered using inflators and deflators, even though technically I'm not deflating/inflating objects in this case. The only problem with that (beyond the non-intended usage) is that the conversion I do is dependent upon another field in the form's value and I saw no way to say in the inflator "when field y is x, do a, else do b".
_______________________________________________ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu