Hi,
I have a matrix question which has four lines (statements). The statements have linked to other questions (display logic). My question is how do create text boxes that allow respondent to fill in answer which are not in my list? Please see the picture below. 
Please help! I need this issue to be solved urgently!
I appreciate your response!
Regards,
Houston
Create text boxes in a matrix question for respondents who select "other"
Best answer by ahmedA
You can use this JS:
Qualtrics.SurveyEngine.addOnReady(function () {
document.querySelectorAll("td.last").forEach((item) => {
let sl = item.querySelector("[type='radio']");
item.querySelectorAll("*").forEach((child) => child.hide());
item.insertAdjacentHTML(
"afterbegin",
""
);
document.querySelector("#other_text_" + sl.name.split("~")[2]).oninput = function (e) {
if (e.target.value.trim() !== "") sl.checked = true;
};
});
document.querySelector("#NextButton").onclick = function () {
document.querySelectorAll("[id^='other_text_']").forEach((tb) => {
Qualtrics.SurveyEngine.setEmbeddedData(tb.id, tb.value);
});
};
});
You'll need to create ED for each choice like other_text_1, other_text_2 etc.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

