On Sun, Oct 10, 2010 at 12:00 AM, NoviceSortOf <dljonsson2...@gmail.com> wrote:
> I'm using the following in a form to allow the user to input choices
> on field named frequency.
>
> sub_freq   = forms.ChoiceField(choices=SUB_FREQ,
> widget=forms.CheckboxSelectMultiple)
>
> This gives me a list of checkboxes and I check all of the checkboxes
>
> Is there anyway to limit the enduser to only checking one box?

Yes. You use the right widget for the job: a radio button.

Checkboxes are, by definition, multiple selection widgets. Radio
buttons (RadioSelect in Django) are single selections.

Yours,
Russ Magee %-)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to