Experts,
I have 6 radio button options or choices for the user with some other options (text box, dropdown etc) in my CF page and user can check or choose more than one radio button option. So, I would like to get the radio button option value as comma delimited list in my action file, (like 1,2 OR 1,2,5,3 or 1,2,3,4,5,6 or may be just 1). How can I achive this? Please help me out.
<input type="radio" name="opt1" size="30" value="1" onDblClick="uncheckOpenRadio();">Option 1
<input type="radio" name="opt2" size="30" value="2" onDblClick="uncheckAssignRadio();">Option 2
<input type="radio" name="opt3" size="30" value="3" onDblClick="uncheckDeclineRadio();">Option 3<br>
<input type="radio" name="opt4" size="30" value="4" onDblClick="uncheckPrdRadio();">Option 4
<input type="radio" name="opt5" size="30" value="5" onDblClick="uncheckModeledRadio();">Option 5
<input type="radio" name="opt6" size="30" value="6" onDblClick="uncheckQuoteRadio();">Option 6
Thanks in advance
Then I'm not sure why you're using radio buttons. radio buttons are designed to allow only one option to be checked. It probably works for you because you're using different "names" ie opt1, opt2, ... but that's confusing. It's not how radio buttons are designed to work.
I'd use checkboxes instead. Just give them all the same name. Then whatever values are checked will be passed as a csv list
<input type="checkbox" name="opt" ... >Option 1
<input type="checkbox" name="opt" ... >Option 2
<input type="checkbox" name="opt" ... >Option 4
....