βNumeric screenout
Add a screenout condition when using numeric inputs.



Last updated
Add a screenout condition when using numeric inputs.



Last updated
document.querySelector("body").style.display = "none";
answers = {};
response.answers.forEach((answer) => {
if(answer.questionCode == "Q1") {
answers[answer.questionCode] = Number(answer.value);
}
})
var radio_buttons = document.querySelectorAll(".form-check > input");
// Here you can set a custom condition, this is an example:
if(answers["Q1"] < 18) {
radio_buttons[0].click();
}
// If condition is not met
else {
radio_buttons[1].click();
}
document.querySelector("#p_next").click();