Please open a ticket pointing to this thread. Thanks.

On Thursday, 20 September 2012 00:11:49 UTC-5, Matt wrote:
>
> Hi there,
>
> I use custom forms in my app. I'm getting a problem whereby form errors 
> divs are now appearing in the output of widgets. Even though I've 
> suppressed them via hideerror=True.
>
> i.e. 
>
>      logging.info(form.custom.widget[field])
>
> returns
>
> <input class="string invalidinput" id="x_name" name="name" type="text" 
> value="" /><div class="error_wrapper"><div class="error" 
> id="name__error">enter a value</div></div>
>
> When it used to only return:
>
> <input class="string invalidinput" id="x_name" name="name" type="text" 
> value="" />
>
> I'm doing something along the lines of:
>
> def test_salon():
>   response.view = 'testing/form.html'
>
>   form = SQLFORM(db.x)
>
>   if form.process(hideerror = True).accepted:
>     session.flash = 'YAY'
>   elif form.errors:
>     response.flash = None
>
>   return dict(form = form)
>
> Then in the form.html
>
> {{= form.custom.begin }}
>
> {{ for field in form.fields: }}
>
> {{= form.custom.widget[field] }}
>
> {{ pass }}
>
> {{= BUTTON('Submit', _type = 'submit') }}
>
> {{= form.custom.end }}
>
> Cheers,
> Matt
>

-- 



Reply via email to