On Sunday, 23 June 2013 10:27:22 UTC+10, Anthony wrote: > > On Saturday, June 22, 2013 4:55:02 PM UTC-4, lucas wrote: > >> it works fine, but only as long as "requires=IS_NOT_EMPTY()" is not also >> included in the options. > > > Yes, the IS_NOT_EMPTY validator doesn't really make sense with a checkbox, > as there is no way to distinguish between "I'm deliberately leaving this > unchecked" (i.e., False) and "I'm not paying attention" (i.e., empty). If > you want to force users to make an explicit choice, you'll have to use a > custom widget (that sends a value for both True and False) rather than the > default checkbox widget -- then you can use the validator. > > Sounds like a list box with a validator in a set of "Yes","No","Don't Know"
-- --- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

