I do not understand. forms have fields with have validators which are
executed automatically.

If you have a variable "a" and you want to apply a validator to it you
can

(b,error)=IS_INT_IN_RANGE(0,100)(a)

where (b, error) == (int(a), None) if a passes or (b, error)==
(a,"error message") otherwise.



On Sep 29, 3:51 am, ed <edbi...@rocketmail.com> wrote:
> Hi,
> Can i use error_message() in the Controller to validate field data? I
> think i saw somewhere this process. Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to