[web2py] Re: Validators allow empty

2010-10-13 Thread Joe J
Thanks DenesL, I'll give that a try. Thanks for the advice. On Oct 13, 4:53 am, DenesL wrote: > Hi Joe, > > use IS_EMPTY_OR as in > > IS_EMPTY_OR(IS_EMAIL(error_message=T('Invalid email address.'))) > > Denes > > On Oct 13, 3:55 am, Joe J wrote: > > > > > This is probably an easy question, but

[web2py] Re: Validators allow empty

2010-10-13 Thread DenesL
Hi Joe, use IS_EMPTY_OR as in IS_EMPTY_OR(IS_EMAIL(error_message=T('Invalid email address.'))) Denes On Oct 13, 3:55 am, Joe J wrote: > This is probably an easy question, but I'm looking for a way to > validate a field if it is given, but let it pass if it is empty. > Currently, the following