Something like this:

Field('sex', requires=IS_IN_SET(['male','female'],
widget=SQLFORM.widgets.radio.widget)

On Sun, Sep 16, 2012 at 4:32 AM, Pystar <[email protected]> wrote:
> Doing that threw this error:
> <type 'exceptions.SyntaxError'> widget cannot determine options of
> auth_user.sex
>
>
> On Saturday, September 15, 2012 7:21:42 PM UTC+1, Anthony wrote:
>>
>> I don't think there's a validator that does it automatically, but you can
>> specify widget=SQLFORM.widgets.radio.widget. See
>> http://web2py.com/books/default/chapter/29/07#Widgets.
>>
>> Anthony
>>
>> On Saturday, September 15, 2012 2:12:17 PM UTC-4, Pystar wrote:
>>>
>>> what validator do I use to produce radio boxes in html? i.e. in the
>>> database definition?
>
> --
>
>
>

-- 



Reply via email to