Hidden Recode question based on previous answers | XM Community
Skip to main content

Hi,
I would like to grab the respondent's answer from Q1 (age), and recode age variable in Q2 (Hidden question).
I have tried to use Display Logic so that certain option will show only, but I'm not sure how to 'select' the answer automatically on the display answer. (the Default Choice feature does not have logic condition).
Any advice is appreciated.

Q1:

  1. Under 18

  2. 18 to 24

  3. 24 to 34

  4. 35 to 44

  5. 45 to 55


Q2 (Recode Hidden question)
  1. 18 to 34 (if option 2 or 3 is selected in Q1)

  2. 35 to 55 (if option 4 or 5 is selected in Q1)


You are on correct path, just make Q2 multichoice question, and using default choice select both the option. Now add display logic on the options. Hence only one option will be displayed and that will get selected. Hide the question using JS


Multichoice! Why did I not think about that.
Thank you so so much!


Hello! I am trying to do something similar in a survey. I'm all set on the answer display logic, but what is the JS to hide the question?


https://www.qualtrics.com/community/discussion/comment/27730#Comment_27730To hide:
jQuery("#"+this.questionId).hide();
If this is the only question on the page then you can also click next button using JS:
jQuery("#NextButton").click();


https://www.qualtrics.com/community/discussion/comment/27732#Comment_27732Thank you!


Leave a Reply