Hi, im working on a survey in SSI Web V7 and im looking to try and dynamically hide checkboxes for answers selected in each column on a previous question.
The setup is:
sc5b - Grid question with up to 5 columns and 12 answer options.
sc6b - Grid question with the same columns from sc5b, answer options selected at sc5b should not be selectable at sc6b
I have been trying to implement something like the below but i dont think the var is capturing the checkbox value so it just hides everything by default
<script type="text/javascript">;
var $r1c1 = "[%sc5b_r1_c1%]";
var $r2c1 = "[%sc5b_r2_c1%]";
if($r1c1 = 1 )
{
document.getElementById("sc6b_r1_c1_graphical").visibility = 'hidden';
document.getElementById("sc6b_r1_c1_graphical").disabled = 'true';
document.getElementById("sc6b_r1_c1_graphical").className = 'HideElement';
}
if(r2c1 = 1 )
{
document.getElementById("sc6b_r2_c1_graphical").visibility = 'hidden';
document.getElementById("sc6b_r2_c1_graphical").disabled = 'true';
document.getElementById("sc6b_r2_c1_graphical").className = 'HideElement';
}
</script>
If anyone can assist it would be amazing.
Cheers