On Wednesday, December 28, 2011 5:50:53 PM UTC-5, Alan Etkin wrote: > > And you might consider defining the class attribute with a custom > widget for the css to be available to all app forms. >
Good suggestion. Note, you don't necessarily need to create a custom widget -- you can pass HTML attributes to any widget via a lambda: db.mytable.myfield.widget = lambda field, value: SQLFORM.widgets.string.widget(field, value, _class='my-string') Anthony