db.table.checkbox_field.requires=IS_IN_SET(['on']) yes
On Feb 27, 10:44 am, DenesL <[email protected]> wrote: > On Feb 27, 10:42 am, Voltron <[email protected]> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

