On one page I have a yes/no question. If yes is pressed, I am displaying 3 follow up questions with the code below. I however want to avoid NA's. Therefore, I would like to add a code snipped that forces participants to fill all DISPLAYED Items. Is this possible, and if yes could anyone provide a code? Thx so much!
<script type="text/javascript">
<!--
var optionA = document.getElementById("CA37_01a"); // "Ja"
var optionB = document.getElementById("CA37_02a"); // "Nein"
var fragebe = document.getElementById("CA32_qst"); // Question anzeige
function toggle() {
if (optionA.checked) {
fragebe.style.display = "";
} else {
fragebe.style.display = "none";
}
}
SoSciTools.attachEvent(optionA, "click", toggle);
SoSciTools.attachEvent(optionB, "click", toggle);
toggle();
// -->
</script>