Re: [web2py] Custom login form error display

2015-10-14 Thread Krzysztof Socha
> > > Note, if you use form.custom.widget.fieldname in a custom form, you still > get errors displayed automatically (the error is part of the widget > object). The example linked above shows the hiderror option being used. In > that case, you are explicitly suppressing the automatic error disp

Re: [web2py] Custom login form error display

2013-11-08 Thread Ruud Schroen
I got the errors working. I forgot to use form.errors like you said. Do you guys also know of a way to show an error if the password is incorrect? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/

Re: [web2py] Custom login form error display

2013-11-07 Thread Anthony
On Thursday, November 7, 2013 8:24:19 PM UTC-5, Kiran Subbaraman wrote: > Look at the > > http://web2py.com/books/default/chapter/29/07/forms-and-validators#Hide-errors. > > > I think the errors are not displayed as usual, the moment you start > working with a customized form. Note, if you u

Re: [web2py] Custom login form error display

2013-11-07 Thread Kiran Subbaraman
Look at the http://web2py.com/books/default/chapter/29/07/forms-and-validators#Hide-errors. I think the errors are not displayed as usual, the moment you start working with a customized form. You will need to handle that too. Kiran Subbaraman http://sub

[web2py] Custom login form error display

2013-11-07 Thread Ruud Schroen
Hi, I am building my login form with the form.custom.widget, because I don' like the standard layout of the forms. Now the problem is, I can't get the errors to display. Here is my controller: def login(): form=auth.login() if form.accepts(request,session): response.flash = 'form