[web2py] Re: Optional form field and its validation

2010-07-19 Thread rāma
Thank you for the blazing fast response. I didn't find that in the book hope its noted somewhere to be added later. Rāma On Jul 20, 1:33 am, mdipierro wrote: > IS_EMPTY_OR(IS_EMAIL()) > > On Jul 19, 12:23 pm, rāma wrote: > > > > > Hi, > > > How do I get the form to validate right. > > I want t

[web2py] Re: Optional form field and its validation

2010-07-19 Thread mdipierro
IS_EMPTY_OR(IS_EMAIL()) On Jul 19, 12:23 pm, rāma wrote: > Hi, > > How do I get the form to validate right. > I want to validate an email field ONLY IF it is filled in. IS_EMAIL() > doesn't meet my requirement as it enforces validation simply by > submitting. > > IS_NOT_REQUIRED() validator? ;-)