Hi, well what I do to change some attributes in the forms is modifiying the form before to be returned/rendered:
You can access to the elements in the form like a list
Ex:
form = SQLFORM.factory(Field('hoho'),
Field('haha')
)
form[0][1][1]['_class'] = "nothing"
return dict(form=form)
This Will change the class of the last <td> tag from "w2p_fw" to "nothing"
For a massive replace maybe Javascript is the best way.
Cheers!
Web2py automatically add event listeners and class="btn" for button. What if my form contain more then one button or I don't want use that class? Usually I have used input type="button" in that case, but now text in my button may contain 2 rows and I can't use input becouse it inline element. How can I delete all web2py event listeners for buttons?