Thanks Anthony, Yes, I was originally considering adding a message at the top of the page, I just thought perhaps there might be an other way. In any case, that's what I did, added a message at the top and that's fine. Thanks again for your kind reply. Cheers, Joe
On Saturday, February 6, 2016 at 1:11:29 AM UTC+8, Anthony wrote: > > That's just how the browser works. When there is an error, you might > consider adding a message at the top of the page with a link down to the > form. Alternatively, you could use Javascript to scroll down to the form -- > see http://jsfiddle.net/thinkingstiff/dg8yr/. > > Anthony > > On Friday, February 5, 2016 at 2:12:48 AM UTC-5, Joe wrote: >> >> My form is in the bottom of the page. When I submit the form, if there is >> an error, the error msg *(Enter Value*) works as expected but after >> submission the user is sent back to the top of the page so he can't see the >> error msgs. >> How can I keep the page where it is when the form is submitted if there >> is an error? I am using a template so I am not extending the Web2py >> layout.html. >> I would appreciate some advise. >> Thanks very much. >> Cheers, >> Joe >> >> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

