mercredi 21 décembre 2016

In django form how to add checkboxes instead of radio button?

I have a form where for one specific field I can have multiple choices. Something like

What would you like to eat this weekend? Choice 1: Italian Choice 2: Mexican Choice 3: Greek Choice 4: Indian

I have radio button for all possible choices but because weekend is a multiple meals most of the time people want to select more than just one item. That makes me think it may be a good idea to have checkboxes associated with all possible choices.

How do I go about converting my radio buttons into a checkboxes ??

Please advise. Thanks.




Aucun commentaire:

Enregistrer un commentaire