Thank you, DenesL.

Eduardo

On Mar 10, 4:14 pm, DenesL <denes1...@yahoo.ca> wrote:
> ...requires=IS_EMPTY_OR(IS_EMAIL(...))
>
> Seehttp://web2py.com/book/default/chapter/07#Validators
>
> On Mar 10, 1:21 pm, Eduardo <meketr...@gmail.com> wrote:
>
> > Hello,
>
> > I need to validate a field as e-mail but I also would like to accept
> > it if it is left empty; the following:
>
> > db.table.field.requires = IS_EMAIL(error_message=T('Not a valid e-mail
> > address!'))
>
> > flashes the error message for invalid e-mail when the field is left
> > empty.
>
> > How can I fix that?
>
> > Thanks,
>
> > Eduardo
>
>

Reply via email to