Hi there,
I would like to do the following:
In the upper part of the page/screen I have grid- or radio like input field. E.g. a respondent can choose option A or B. (Preferebly these would be buttons or tiles but this is of lesser concern at the moment).
In the lower part of the page/screen respondents can see how parameters change as they choose option A or B. I.e. if they select A, then X=1 and Y=1 and if they select B, then X=2 and Y=2.
The parameters should automatically change as option A and B are selected, such that the respondent can see what happens as they alternate their choice. The option that is selected when they leave the page, will be the value that is written and will count as their decision.
I've simply tried the standard grid input where I tried to let the grid variable communicate with a function in javascript (Advanced --> HTML <head> Tag). Q99_r1 is the row response of the grid question:
<script type="text/javascript">
function Calc()
{
var x1 = Number(document.getElementById("Q99_r1").value);
if(x1 == 1){document.getElementById("Q99_vb").value = 3;}
if(x1 == 2){document.getElementById("Q99_vb").value = 99;}
}
</script>
Subsequently, I entered some html code in the Footer of the Grid Question:
<table style="float: left;border:1px red solid" border="0" cellpadding="1" cellspacing="" width="30%">
<tr>
<td style="text-align:center" colspan="2"><b>TODAY</b></td>
</tr>
<tr>
<td></td><td>REVENUE</td>
</tr>
<tr>
<td>PRODUCT1</td>
<td><input name="Q99_vb" id="Q99_vb" size="3">€</td>
</tr>
<tr height = 40px>
<td></td><td></td>
</tr>
</table>
https://legacy.sawtoothsoftware.com/forum/qa-plugin/q2a-captcha-antibot-master/AntiBotCaptcha.php?image=1611165376
This doesn't work... In the free-format I'm somewhat stuck on getting an input field that is radio/button and mutually exclusive.
https://legacy.sawtoothsoftware.com/forum/qa-plugin/q2a-captcha-antibot-master/AntiBotCaptcha.php?image=1611165376
Any suggestions? Help would be greatly appreciated.
Thanks,
https://legacy.sawtoothsoftware.com/forum/qa-plugin/q2a-captcha-antibot-master/AntiBotCaptcha.php?image=1611165376
Tom