Just a doubt: why not? Is the layout generated in form create time or in show time?
In my opinion Anthony's way to understand is more intuitive than yours: 1) First I create the form. 2) After that I set its properties. Am I wrong? -- Vinicius Assef. On Wed, Jan 26, 2011 at 12:42 PM, Massimo Di Pierro <[email protected]> wrote: > should be > > auth.settings.formstyle='divs' > form=auth() > > you cannot set the formstyle after the form is created. > > On Jan 25, 10:33 am, Anthony <[email protected]> wrote: >> On Tuesday, January 25, 2011 10:41:02 AM UTC-5, David J wrote: >> > I still cant seem to change the default view from 'table3cols' to 'divs' >> >> > I tried editing the controller and >> >> > form = auth() >> > form.formstyle = 'divs' >> >> > But I still get the table 3 cols layout. >> >> Maybe someone else can explain why the above doesn't work, but as an >> alternative, have you tried: >> >> auth.settings.formstyle = 'divs' >> form = auth() >> >> This sets the auth formstyle before the call to auth() creates the form >> (like crud.settings.formstyle). >> Seehttp://web2py.com/book/default/chapter/08?search=formstyle. >> >> Anthony

