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 work 
either way. If it's not working with form.process(), please show your code.

Anthony

On Thursday, April 25, 2013 9:04:01 AM UTC-4, yashar wrote:
>
> 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 
>> 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 can just do:
>>
>> form.process(..., hideerror=True)
>>
>> Anthony
>>
>> On Thursday, April 25, 2013 3:02:46 AM UTC-4, yashar wrote:
>>>
>>> i set form.errors = dict() at the end of controller but i still get 
>>> errors, is this a bug or i'm doing a wrong way?
>>
>>

-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to