Hi guys, I was wondering if there is a way to create checkboxes for the IS_IN_DB() validator & be able to select several options at a go like I can with IS_IN_SET().
Example:
db.define_table('favourites',
Field('snack'),
format="%(snack)s")
db.define_table('person',
Field('Name'),
Field('favourites', 'reference favourites', requires=IS_IN_DB((db, db.favourites, '%(snack)s'),multiple=True), widget=SQLFORM.widgets.checkboxes.widget))
If the above is not possible what can i do to achieve the same results?
Regrads,
Mostwanted