You can set the field's requires using IS_EMAIL and IS_IN_DB
validators and on form.accepts (if using FORM or SQLFORM) check if it
is different from the initial setting.

On Apr 10, 1:34 am, waTR <[email protected]> wrote:
> I have a field whose value I set to a user's email, from the DB. I
> need to have the field check the following:
>
> If user enters NEW email, check if email is already in DB and flash
> error message if it does, otherwise, if user doesn't change their
> email, process form normally.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to