I think this will do.
form=SQLFORM.factory(SQLField('name',requires=IS_IN_SET
(('True','False')),widget=SQLFORM.widgets.radio.widget))
On Jul 3, 10:55 am, Yannick <[email protected]> wrote:
> Hello mate,
> I have a stupid question here...Just wonder can I generate a radio
> button form from an SQLField using form_factory ? (The radio button
> should be True or False)
> Does anyone know how ? I tried different parameter in SQLField like
> 'boolean' etc.. but can't have radio button work... I think it's
> something pretty simple that I missed...
>
> Thanks,
> Yannick P.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---