okay, i think i figured out the problem, but i don't know about a long- term solution.
based on my experience, plus these threads: - http://groups.google.com/group/web2py/browse_thread/thread/1a59a8995a270f71/fa2ffa0cdaa286c4?hl=en&lnk=gst&q=boolean+radio#fa2ffa0cdaa286c4 - http://groups.google.com/group/web2py/browse_thread/thread/9e550fed4e7cf141/e4d5da4e46d3eaf7?hl=en&lnk=gst&q=boolean+radio#e4d5da4e46d3eaf7 i think the problem is that it doesn't work when you have a boolean field set to any non-default widget. i tried this: Field('isComplete', 'boolean', widget=SQLFORM.widgets.options.widget, requires=IS_IN_SET((True, False))), and it would display a dropdown, but if i chose False it would never register. my solution for now will be to not use a boolean field, and instead use ints of 0 and 1. but i think there is something wrong because this seems like something you should be able to do. matt On Nov 11, 12:40 pm, mattynoce <mattyn...@gmail.com> wrote: > unfortunately, that didn't work either. both your version and mine > show the proper thing online: > > o Yes > o No > > but neither version will allow me to click on No and have it register > as False in the database. i even made it simpler: > > Field('isComplete', 'boolean', widget=SQLFORM.widgets.radio.widget, > requires=IS_IN_SET((True, False))), > > it shows up as: > > o True > o False > > i click on False in appadamin, hit submit, and it shows up as True. i > can't choose False. if i switch the order: > > o False > o True > > it still only selects True. it's like there's a statement that won't > letradiobuttons return False. i'll look into the code and see what i > find. > > matt > > On Nov 10, 11:00 pm, annet <annet.verm...@gmail.com> wrote: > > > Hi Matt, > > > TheIS_IN_SET() should read: > > >IS_IN_SET([(True,'Yes'),(False,'No')]) > > > Kind regards, > > > Annet. > >