What classes do you need to add? Once the form has been created, you can add classes to individual elements via:
form.element('[selector goes here]')['_class'] = 'new class' See http://web2py.com/books/default/chapter/29/5#elements. If you need to add a class to an input widget specifically, you can also do: form.custom.widget.myfield['_class'] = 'new class' You can also pass a class to the widget of the db field: db.mytable.myfield.widget = lambda f, v: SQLFORM.widgets.string.widget(f, v, _class='new class') See http://web2py.com/books/default/chapter/29/7#Widgets. Anthony On Tuesday, January 10, 2012 3:32:59 PM UTC-5, David J wrote: > > Has this been answered already; > > How do I change the class names to use bootstrap? > > Thanks. > >