divesouth
12-10-2003, 03:46 AM
i have used hide/show layer functions in a multiple selection form using radio and check boxes - see it here http://www.kwamnandi.co.za/drafts/forms/layers/layers.html
i will try and explain what my problem is:
there are 4 main categories and each of these have options based upon the main selection. I don't want the visitor to be able to select options from all 4 main categories, however, he must be able to click on any of the options and in doing so it should "deselect" any other options he might have clicked on.
i am using onClick="document.forms.formName.OptionName.checked=false"
example: (use URL shown above)
If he selects "Bed only" from the "Self Catering Rooms" option, and then decides, no, he wants to stay in the "Budget Room" with "Dinner, Bed and Breakfast, then his previous selection for "Bed only" from the "Self Catering Rooms" must be "un-clicked" - incidentally this option works, only because the "names" for the radio button and checkboxes are different.
This does not apply to the other two options "Budget Rooms" and "Back Packer Rooms" as they have 3 radio buttons with the same "name" as you can only choose one
How do i get around this ?
i will try and explain what my problem is:
there are 4 main categories and each of these have options based upon the main selection. I don't want the visitor to be able to select options from all 4 main categories, however, he must be able to click on any of the options and in doing so it should "deselect" any other options he might have clicked on.
i am using onClick="document.forms.formName.OptionName.checked=false"
example: (use URL shown above)
If he selects "Bed only" from the "Self Catering Rooms" option, and then decides, no, he wants to stay in the "Budget Room" with "Dinner, Bed and Breakfast, then his previous selection for "Bed only" from the "Self Catering Rooms" must be "un-clicked" - incidentally this option works, only because the "names" for the radio button and checkboxes are different.
This does not apply to the other two options "Budget Rooms" and "Back Packer Rooms" as they have 3 radio buttons with the same "name" as you can only choose one
How do i get around this ?