Thanks Di Pierro.... Sorry, I'm new to web2py and have many questions... I'd like do do this the right way....
So, where is the best place to define myformstyle and place crud.settings.formstyle=myformstyle ? Thanks, Marcello On Jan 3, 9:22 pm, mdipierro <[email protected]> wrote: > You would define myformstyle and do > > crud.settings.formstyle=myformstyle (once) > > and/or SQLFORM(...,formstyle=myformstyle) (everwhere) > > On Jan 3, 12:00 pm, Marcello Parra <[email protected]> wrote: > > > > > > > > > OK... Thanks... > > I'll take a look.... > > > But as I understand, I should insert this function in every SQLFORM call.... > > > If this would be a default in all application is there a way that I could > > not duplicate code ?? > > > On Mon, Jan 3, 2011 at 3:46 PM, mdipierro <[email protected]> wrote: > > > No but look at the last 10 lines of SQLFORM.__init__ > > > > On Jan 3, 11:38 am, Marcello <[email protected]> wrote: > > > > Hello, > > > > > I need to customize forms generated by SQLFORM. > > > > I saw that formstyle can be a function, and this could solve my > > > > problem. > > > > > But I did not find any doc/example about this... > > > > > Is there something I can start with ?? > > > > > Thanks > > > > > Marcello

