I have 2 multiple response questions - X1 and X2. Both use the same list which consists of 10 options.
If I select options 1-5-10 at X1, X2 should display all 10 options but have the check boxes ticked for 1-5-10. I can do this with a series of if statements, but had trouble converting it to a for loop format.
I know the line " if('[%X1%]_'+i==1)" is my problem.
<script>
$(document).ready(function(){
for(var i=1; i<=10; i++)
{
if('[%X1%]_'+i==1)
{
SSI_SetSelect('[%QuestionName()%]_'+i, true);
}
}
})
</script>
Appreciate any guidance. Thanks.