pull forward text entry from multiple choice into text entry of multiple choice | XM Community
Skip to main content

pull forward text entry from multiple choice into text entry of multiple choice

  • September 12, 2022
  • 1 reply
  • 61 views

Forum|alt.badge.img+8

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:
Screen Shot 2022-09-12 at 4.55.28 PM.png
(On QID22, "Other" choice is recode choice 9; in QID23, "Other" is recode choice 8).
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!!

1 reply

PraDeepKotian_XM
QPN Level 5 ●●●●●
Forum|alt.badge.img+21
  • QPN Level 5 ●●●●●
  • 230 replies
  • September 13, 2022

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.