Thanks it worked, but can it change the submit_button='' too? is there a way to change it to <button id="create-user">Create new user</button>
According this http://web2py.com/book/default/chapter/05#HTML-Helpers It should be: submit_button=BUTTON('Create new user', _id='create-user') or maybe BUTTON() doesn't exist Sorry to bother you again =) On Sep 18, 1:31 am, Anthony <abasta...@gmail.com> wrote: > On Sunday, September 18, 2011 2:11:04 AM UTC-4, JavierQQ wrote: > > > can I do =form(_class="Dialog-form")? (Dialog-form is the id of > > the example) > > Not exactly, but assuming 'form' is a web2py FORM or SQLFORM object, you can > add a class to it by adding a '_class' attribute. You can either do that > when you first create the form: > > form = SQLFORM(..., _class='Dialog-form') > > or after it is created: > > form['_class']='Dialog-form' > > Seehttp://web2py.com/book/default/chapter/05#HTML-Helpers. > > Anthony