On Saturday, July 23, 2011 3:06:13 AM UTC-4, Luis Goncalves wrote: > > I am just a beginner with CSS/HTML, and so maybe I have a misconceived > idea of what CSS can/should do and the right way to use it. > > Naively, I thought that I could use the #id=table-field entries in CSS to > control placement/shape of the form elements, and not need to change much > more in the controller or the view? > Yes, you should be able to (to some extent, depending on exactly what you want to do). If you use formstyle='divs', you'll get a set of divs with a consistent scheme of CSS classes and ids to identify the different form elements. Beyond that, is there something additional you think web2py could be doing to facilitate the kind of CSS-based customization you want to do. What output should web2py be generating that would enable you to achieve the form formatting you want purely via CSS?
> It seems that if I have to use custom forms, then I might as well not even > bother with using SQLFORM -- it's pretty much like building the form piece > by piece in the view? > SQLFORM (and FORM, to a lesser extent) does a lot more than just build the form HTML for you. It also handles validation, error message display, CSRF and double submission protection (via a _formkey hidden field), form pre-population for updates, database insertion, etc. Using the form.custom.widgets is also easier than manually building all the HTML for each field widget. Anthony

