This is correct. The issue is what is the purpose of the formname? It is a hidden field used to determine whether the form is being submitted or not. If you omit formname, web2py cannot determine whether the form is not submitted or it is submitted with all fields empty. It assumes the latter and applies validators. It is the validators that notify you of the errors.
On Aug 6, 10:38 am, Sebastian Bassi <sba...@gmail.com> wrote: > I think this feature doesn't work as described: > > " If the page contains a single form, you can set formname=None and > omit the hidden field in the view." > > Source:http://www.web2py.com/book/default/chapter/07 > > Because if I do that (using formname=None and omit the hidden field in > the view), the form has errors and enter here as soon as I load it: > > elif form.errors: > response.flash = 'form has errors' > > But if I put a name in formname and also put the hidden field in the > view, it works without errors.