exactly what I did but it still threw that error. Also, kindly note that I 
am adding this extra field to the auth_user table. And displaying it in a 
custom form.
Also another question concerning custom forms, in the view, how do I access 
elements of the form using syntax like form[0]["_class"] = "whatever"
I am displaying my custom form like this.
{{=form.custom.begin}}
{{=form.custom.end}}
Thanks

On Saturday, September 15, 2012 7:37:11 PM UTC+1, Alec Taylor wrote:
>
> 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] <javascript:>> 
> 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