Building the response in a particular structure. | XM Community
Skip to main content

Hello All, 

Please let me know if the following can be done in Qualtrics. I have 20 questions. 12 of them are conjoint questions (Multiple choice). 

The Conjoint Question looks as follows: 
 


The first row is for SMS availability, second for color, third for display and last one is price. 

Suppose a respondent chooses the third choice. Usually the output in Qualtrics would come as :
 

Question#
Choice 3 

 

It is possible to get the output as following ? If a straight approach is not available may be JavaScript would be needed. 

 


Any help would be appreciated. 

Thanks

 

 

 

 

You’ll need JavaScript to save the attributes of the selected choice either to embedded data fields or another question(s) on the same page.


@TomG thanks for your response. 

I did not quite understand. If possible, could you give me an example or the code/flow to make it happen? I am unsure how to execute what you mentioned and would appreciate a detailed help. 


@OBh,

It won’t do it for you, but I’ll point you in the right direction. There are many ways it could be done, but let’s say you add a form field question with four rows (SMS, Color, Display, Price) after your multiple choice and hide it with JS. Also, embed a hidden delimited list of the attributes in your choice labels, like:

Purchase<span class="attrs" style="display:none;">Yes|Rose|10 inch|$189</span>

Then in the addOnPageSubmit() function find the label for the selected choice, parse the contents of the hidden span, and populate the form field.


@TomG Thanks for the direction. I will try this one. 


Leave a Reply