I have a question. I have a form on my page with some checkboxes and radiobuttons.
I only want to allow the checking of one checkbox per question and the same goes for the radiobutton. So for example I ask a question. Are you a man: Checkbox NO - checkbox YES
Obviously you need to choose one or the other. If you fill in YES and you change your mind (for whatever strange reason ) and you fill in NO, the checkbox that was previously filled in (the YES checkbox) needs to be cleared.
Anyone understand my question and know how to do this?
I am not totally sure what you mean. I have a form in this I have two checkboxes. In the properties panel one has the ID Check1 and the other has the Id Check2. I gave them each a value namely Check1 has the value yes and Check2 has the value no.
But I can still select them both.
The same issue goes for the radiobutton by the way.
What am I doing wrong?
I thought that the checkboxes/radiobuttons should have the same Id but then I get an error stating that they have the same Id and I can't preview the page.
Checkboxes have to be unchecked to clear.....radio buttons by default are similar to the old car radio buttons, you can never push two at once.Its not possible to have checkboxes act as radio buttons. They are two distinct forms.Use radio buttons for your example above. Checkboxes are for lists where more than one answer is applicable and/or desired.
Martin 1...found a javascript that will allow you to have your guest select one checkbox and one checkbox only, rather than multiple. Don't know if you can still use it but here's the link. "Limits the number of checkboxes a user may click by deselecting the others upon selection." http://javascript.internet.com/forms/select-one.html