How to make variable based on answers | XM Community
Skip to main content
Solved

How to make variable based on answers

  • August 31, 2023
  • 2 replies
  • 668 views

Forum|alt.badge.img+3

 

 

I have 6 options in Question Q8. Based on the following conditions, I want to configure the survey:

 

・Create a hidden variable: A hidden variable is used to categorize participants based on their response in Question Q8.

・The variable is called 'MAIN OPTION'. This variable should store the option chosen by participants in Question Q8.

・If a participant answers "No" to Question Q2, I want the 'MAIN OPTION' variable to be set to "Blue".

 

Should I set quota or embedded data? I would appreciate if anyone can help with this. 

Best answer by Nam Nguyen

@hachiware10 Branch logic with embedded data should give you what you want
Embedded Data (qualtrics.com)
Branch Logic (qualtrics.com)
Set it up like this for example

I hope it helps

2 replies

Nam Nguyen
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+29
  • QPN Level 8 ●●●●●●●●
  • 1096 replies
  • Answer
  • August 31, 2023

@hachiware10 Branch logic with embedded data should give you what you want
Embedded Data (qualtrics.com)
Branch Logic (qualtrics.com)
Set it up like this for example

I hope it helps


Forum|alt.badge.img+3
  • Author
  • Level 2 ●●
  • 15 replies
  • August 31, 2023

Thank you so much!