Hi!
I have a question that has multiple answers that have the option to allow text entry.
i'd like to hide the all text boxes until the customer selects the option.
Qualtrics.SurveyEngine.addOnReady(function () {
var text_box = this.getChoiceContainer().querySelector(".TextEntryBox");
text_box.hide();
this.questionclick = function () {
var text_choice = text_box.ancestors()[1].children[1].className.includes("checked");
if (text_choice) {
text_box.show();
} else {
text_box.hide();
}
};
});
I have this one but it just works to hide one text box out of the 4.
Hide text boxed in multiple answer questions
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
