[Catalyst] FormValidator and FV_eq_with constraint method

Darren Ferguson df at darren-ferguson.com
Fri Nov 28 11:10:27 GMT 2008




Matthias Dietrich-3 wrote:
> 
> 
> can you post a sample?
> 
> Thanks,
>   matt
> 
> 

Hi,

In my original example I add confirm_password to the optional list of
fields.


my $f = $c->form(
        required => [qw/email password/],
        optional => [qw/confirm_password/],
        constraint_methods => {
        email => [
                                email()
                        ],
                        password => FV_eq_with('confirm_password')
        },
        filters => ['trim']
    ); 

-- 
View this message in context: http://www.nabble.com/FormValidator-and-FV_eq_with-constraint-method-tp20703984p20732642.html
Sent from the Catalyst Web Framework mailing list archive at Nabble.com.




More information about the Catalyst mailing list