Creating a "order" variable | XM Community
Skip to main content

Hi! 


Can anyone tell me how I create a variable to indicate the order in which respondents received my four vignettes? For example, a variable named "order" with values like:

1 indicating the order: V1, V2, V3, V4
2 indicating the order: V2, V3, V4, V1
3 indicating: V3, V4, V1, V2
4 indicating: V4, V1, V2, V3

and so on… ??

Additionally, I'd like a variable indicating how much time it took them to read through the four vignettes. 

 

Thanks in advance for the help!

@N_Ashrafi

You can have rank order question and ask them to drag how it was presented to them.

Post which you can pull the rank names with values via JavaScript and push to embedded data.

Use timer question for assessing the time.

Hope it helps!


@N_Ashrafi Create an embedded data order at the beginning of the survey flow

Add is Javascript to the custom JavaScript section of your question(change the V1,V2,V3,V4 accoding to the block it’s in):  Add JavaScript (qualtrics.com)

Qualtrics.SurveyEngine.addOnload(function()
{
var currentOrder = "${e://Field/order}";
var updatedOrder = currentOrder + 'V1 ';
Qualtrics.SurveyEngine.setEmbeddedData('order', updatedOrder);
});

You will have an embedded data order that in the form e.g “V2 V3 V1 V4”

Add a timing question with the vignettes at the same page. you will know how long it took them to go throught the page. Timing Question (qualtrics.com)


Leave a Reply