How to set a single choice Checkbox Group?

theant 08 Jun, 2012
Hello
how to set up a checkbox group with single choice?
Something like:
Gender:
- Male
- Female
where user can choose just one of them?

thanks
GreyHead 08 Jun, 2012
Hi theant,

Use a Radio Box element.

Radio buttons allow only one choice; check-boxes allow more than one choices.

Bob
theant 08 Jun, 2012
Thanks a lot.

Can I change

No=No
Yes=Yes

to

male=male
female=female

or it must be

No=male
Yes=female
GreyHead 08 Jun, 2012
Hi theant,

You can put anything you like in there as long as each entry is on one line and has only one '=' in it.

That said it helps to avoid special characters and to keep the part before the '=' as simple as practical.

Bob
theant 08 Jun, 2012
è ì à are "special characters"?
GreyHead 08 Jun, 2012
Hi theant,

Yes, try them and see if everything works OK; if not replace them with the 'plain' versions.

Special characters are OK after the '=' e.g. aeiou=à è ì ò ù

Bob
theant 08 Jun, 2012
Thanks again
It is ok, just it doesn't save data into DB for check box groups with multiple choice. I tried with varchar and text type but they are empty. Other data are ok into DB.
You can see the form in action here:
http://www.valvola.eu/conosciamoci.html
theant 08 Jun, 2012
Great!
thank you very much
This topic is locked and no more replies can be posted.