Re: [html-formfu] Using HTML::FormFU validation elsewhere

2009-02-06 Thread Dermot
2009/2/6 : > > Hi, > > you can use $form->process directly. Just put you data in a Hashref and > pass it to it. > > $form->process({field1 => "Value1", field2 => "Value2"}); > if($form->submitted_and_valid) { > > } else { > > cheers, > > moritz Thanx. I'll get to work on it. I'm sure I'll have mo

Re: [html-formfu] Using HTML::FormFU validation elsewhere

2009-02-06 Thread onken
Hi, you can use $form->process directly. Just put you data in a Hashref and pass it to it. $form->process({field1 => "Value1", field2 => "Value2"}); if($form->submitted_and_valid) { } else { } cheers, moritz On Fri, 6 Feb 2009 11:54:00 +, Dermot wrote: > Hi, > > In a Catalyst env, I

[html-formfu] Using HTML::FormFU validation elsewhere

2009-02-06 Thread Dermot
Hi, In a Catalyst env, I have a `script/import.pl`. This imports data from CSV files. The data is of the same format/structure as if it where being added via a Form and validated by FormFu. I am using Data::Domain at the moment to validate the entries but it would be tidier if I could somehow harn