You can do custom formatting without hand-coding all the HTML -- see http://web2py.com/book/default/chapter/07#Custom-forms.
On Monday, November 28, 2011 11:17:44 AM UTC-5, Constantine Vasil wrote: > > Assuming [condition] is evaluated dynamically as the code runs > through SQLFORM.factory > definition, yes, this part will do it. > Field('primary_email_choice', ..., default='Home' if [condition] else > 'Work') > > But I need custom formatting. Formatting directly in HTML is easier. > > > >