Got it. Thanks. Case closed.

On Dec 6, 7:55 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> You can do that. If you set in onvalidation, the form does not pass
> validation and you can display the error as you like, for example in a
> flash
>
> form.errors.whateverlyoulike='the error'
>
> On Dec 6, 6:22 pm, weheh <richard_gor...@verizon.net> wrote:
>
>
>
> > I tested out your fix, Massimo, and it works. I'm still thinking that
> > the validation routine should be able to set form.errors to specify an
> > overarching error message for the entire form, rather than for 1 field
> > in the form. Form.errors.fieldname is great for targeting the message
> > to a specific field in the form. I'm pretty sure I want my validator
> > to NOT do a flash message, since it is subservient to the controller
> > that calls it, and I want to let the controller do the flashing based
> > on the passed form.errors message. What do you think?- Hide quoted text -
>
> - Show quoted text -

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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