I have two questions, which are both multiple choice, but the last choice is "Other" with a text entry box. So both QID22 and QID23 are like this:
(On QID22, "Other" choice is recode choice 9; in QID23, "Other" is recode choice .
If on QID22 the user selects "Other" as their choice and writes "bob" in the text entry, on QID23 I want "Other" selected and the text "bob" pulled forward into the associated text entry box.
On QID23, I can make "Other" be selected by putting javascript on it:
Qualtrics.SurveyEngine.addOnload(function()
{
var course = "${q://QID22/SelectedChoicesRecode}";
if(course.includes("9")) {
this.setChoiceValueByRecodeValue(8, 'true') ;
};
});
But this doesn't set the "Other" text of QID23 to "Bob".
AND I can get the "Other" text of QID22 ("Bob") to be set in a regular text entry question with
jQuery("#"+this.questionId+" .InputText").val("${q://QID22/ChoiceTextEntryValue/9}");
BUT
I cannot figure out how to set the multiple choice text entry box of QID23.
All help appreciated. Thank you!!
Page 1 / 1
you can use the default choices option in the QID23 to insert the QID22 selection in other box if there is a page break in between.
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.