If you really want to handle all of your HTML manually, don't bother using the web2py form object in the view at all. Just use SQLFORM for the server-side processing (i.e., validation and database inserts/updates). The only two requirements for the form HTML are that the "name" attributes of the inputs match what SQLFORM is expecting (which are the DAL field names) and that you include {{=form.hidden_fields()}} somewhere in the form (this includes the hidden _formname and _formkey fields, which are used for CSRF protection). To display validation errors, you can access the errors in form.errors.
Anthony On Thursday, December 17, 2015 at 8:07:44 AM UTC-5, Alfonso Serra wrote: > > Makes sense, but now i have automatic markup in my view when the form has > errors, which is something that im trying to avoid. > Ive discovered in html.py code that i can use hideerror=True in all inputs > to prevent that. > > Thanks > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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/d/optout.