hi

i have SQLFORM with checkboxes (widget).
if i choose one checkbox, type(request.varst.checkbox) is 'string'
and if i choose more than one checkbox, tpye(request.vars.checkbox) is 
'list'
why choosing one checkbox does not return 'list'?


form = SQLFORM.factory(Field('checkbox','list:string',label=T('Equipment'),
requires=IS_EMPTY_OR(IS_IN_SET(some_set,multiple=True)),
                                    widget=SQLFORM.widgets.checkboxes.widget
)

andrej

-- 



Reply via email to