Please forgive me for the long post ahead of time. Maybe I am making it too complicated or being too picky.
I have a question, Q1, with the possible answers of no, yes.
Q1:
Do you like dogs?
O No
O Yes, please list the dogs you like.
=============
| |
=============
If they select yes, there is a text box where they can type a response.
If they start typing in a response, the Yes radio button is selected as soon as they start typing in the text box.
Using the wizard to create the question is easy and everything works just fine. However, the value of no needs to be 0 (zero) and the value of yes needs to be 1 (one).
So, I created the question using free format. I used the code that was generated with the wizard for my free format and changed the values as needed. The only thing that is not working is the Yes radio button is not selected when I start typing in the response box.
The survey takers are allowed to go back to previous questions.
The two variables declared for Q1 are Q1_r1 as Radio and Q1_other as Textarea.
Here is the html code I placed in the HTML section.
<table class="inner_table"><tr><td valign="top" align="left">
<table>
<tr class="clickable"><td class="input_cell">
<input name="Q1_r1" value="0" type="radio" id="Q1_r1_1" class="HideElement">
<div id="Q1_r1_1_graphical" class="graphical_select radiobox"></div></td><td class="option_cell"><div class="options"><label for="Q1_r1_1">No</label></div></td></tr><tr class="clickable"><td class="input_cell"><input name="Q1_r1" value="1" type="radio" id="Q1_r1_2" class="HideElement">
<div id="Q1_r1_2_graphical" class="graphical_select radiobox"></div></td><td class="option_cell multiline_other_cell"><div class="options"><label for="Q1_r1_2">Yes, please list the project(s)</label><br><textarea wrap="virtual" name="Q1_other" maxlength="500" id="Q1_other" style=" width: 400px;"></textarea><input type="hidden" name="hid_Q1_other" value="0,500,"></div></td></tr></table></td>
</tr></table>
<input type="hidden" name="hid_list_Q1_r1" value="0,1">
Any help or guidance is much appreciated.
Greg