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

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/40cb06ff-0a0a-4bc7-b04d-83294e86b6f0n%40googlegroups.com.

Reply via email to