How do I format check boxes so only one will be checked at a time?

I'm putting together a form where users can click one box for "yes" and another box for "no." Is there a way to link the boxes so that only one can be checked at a time?


Merrijane Rice


4 Answers

Voted Best Answer

Give each check box the same name but different export value, and they will behave like you describe.


By George Johnson   

Hi,

Name all the checkboxes with the same name but different export values.

Hope this helps,

Dimitri
WindJack Solutions
www.windjack.com
www.pdfscripting.com


Dimitri Munkirs   

That's exactly the purpose for which "radio buttons" are used.

While the answers given previously may work, it's probably best practice to use a radio-button control when you want to force only one choice (from any number of options, not limited to 2), and check-boxes when you want to allow multiple answers.

The radio-button control has several appearances you can choose from -- if you don't want the standard (an open circle that's filled with a dot when you click it), you can also choose a "check" that looks essentially like a check-box but operates as a radio-button -- which is exactly what you wanted.


adobe   

This is great info!


When using Radio Buttons, I noticed if Ichange the names to the “Radio Button” I am able to have multiple selections.When I keep the buttons the same number, it toggles. I have 30 buttons where Ineed to limit the customer selection to only up to 3.


How do I limit up to 3 choices on 30 possible selections? Thanks




Frankie Capparelli   


Please specify a reason: