Raised as issue. http://code.google.com/p/web2py/issues/detail?id=1027
On Friday, September 21, 2012 12:35:56 AM UTC+12, Massimo Di Pierro wrote: > > 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 >> > --