Sorry Massimo for mixing up my question. What I mean is, when there is an error in validating a variable and response.flash is used it returns an empty form with the error message. If possible I would like to return the error message with a filled form like in validators IS_IN_DB, etc.. Thanks again.
On 29 Set, 22:06, mdipierro <[email protected]> wrote: > 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 <[email protected]> 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 [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 -~----------~----~----~----~------~----~------~--~---

