I have the following in a model:

def horizontal_checkbox(f,v):
   return SQLFORM.widgets.checkboxes.widget(f,v, cols=5)

 Field('q3_1_1',
                      requires = IS_IN_SET(['Training', 'Visits',
'Materials', 'Other'],
                                           multiple = True),
                      widget = horizontal_checkbox),


On the entry form it accepts multiple entries and the entries are in the
database but when I use crud.update to edit the record, all the checkboxes
on that field are empty.

How do I correct that?

Regards
Johann
-- 
 May grace and peace be yours in abundance through the full knowledge of God
and of Jesus our Lord!  His divine power has given us everything we need for
life and godliness through the full knowledge of the one who called us by
his own glory and excellence.
                                                    2 Pet. 1:2b,3a

Reply via email to