[web2py] Re: sqlform custom fails to hide errors

2013-04-25 Thread Anthony
Technically, hideerror is an argument of the .accepts() method of FORM (and therefore SQLFORM) -- it is also an argument of .validate() and .process(), which ultimately call .accepts(). Because of the way it is implemented, you can also pass hideerror directly to FORM() and SQLFORM(). It should

[web2py] Re: sqlform custom fails to hide errors

2013-04-25 Thread yashar
thanks, what is the difference between hideerror in sqlform and form.process? i noticed errors hide only if i use hideerror in sqlform not in form.process On Thursday, April 25, 2013 5:16:27 PM UTC+4:30, Anthony wrote: > > During validation, each input gets its own reference to form.errors, so i

[web2py] Re: sqlform custom fails to hide errors

2013-04-25 Thread Anthony
During validation, each input gets its own reference to form.errors, so if you simply replace form.errors, each input will still refer to the original form.errors. So, instead of replacing form.errors, you have to alter it: form.errors.clear() Anyway, this shouldn't be necessary, because you ca