The book says that the checkbox widget takes a 'style' argument for which 
'divs' is a possible value. What modification is required in the following 
code? Thanks.

form = SQLFORM.factory(
        Field('test', 
        type='string',
        requires=IS_IN_DB(db, db.person.name_url, '%(name)s', 
multiple=True), 
        widget=SQLFORM.widgets.checkboxes.widget,
        default = 'Classic-Movies'), formstyle='divs')

-- 



Reply via email to