Thanks. works again
On Feb 27, 10:21 pm, mdipierro <[email protected]> wrote:
> Now I understand. You should use this
>
> db.table.checkbox_field.requires=IS_IN_SET(['on'])
>
> instead because it is not obvious to me that an unchecked checkbox
> should be considered empty since it implies that a choice has been
> made.
> It is possible that revision 1.55 broke IS_NOT_EMPTY for checkboxes.
>
> Massimo
>
> On Feb 27, 2:42 pm, Voltron <[email protected]> wrote:
>
> > apologize, I meant IS_NOT_RMPTY()
>
> > On Feb 27, 6:31 pm, mdipierro <[email protected]> wrote:
>
> > > 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
-~----------~----~----~----~------~----~------~--~---