More generally, if you give all the radio <input> elements the same value 
for the 'name' attribute, the browser will allow only one to be selected at 
a time.

Anthony

On Saturday, November 26, 2011 4:25:54 PM UTC-5, Anthony wrote:
>
> Have you tried the radio widget -- SQLFORM.widgets.radio.widget (see 
> http://web2py.com/book/default/chapter/07#Widgets).
>
> Anthony
>
> On Saturday, November 26, 2011 4:00:06 PM UTC-5, dlypka wrote:
>>
>> When I create several radio buttons in a web2py form, they do not auto
>> deselect when another is selected. They all stay selected.  Do I need
>> to add my own javascript code to do the auto deselect (so that only
>> one radio button at a time stays selected)
>> or does web2py have some support for this behavior?
>>
>>

Reply via email to