db.table.checkbox_field.requires=IS_IN_SET(['on'])

yes


On Feb 27, 10:44 am, DenesL <denes1...@yahoo.ca> wrote:
> On Feb 27, 10:42 am, Voltron <nhy...@googlemail.com> wrote:
>
> > Ok, how would I validate if a checkbox is checked in a form?
>
> How about:
>
> db.table.checkbox_field.requires=IS_IN_SET(['on'})
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to