Hi,
I carry out a study in which I present different sentences (one per page). I inserted a first name randomly in each sentence.
I created one descriptive text question and add this code in Javascript (thanks to the contributor who helped me!).
Qualtrics.SurveyEngine.addOnReady(function()
{
var names = ["Jennifer", "Jessica", "Amanda", "Ashley", "Sarah", "Stephanie", "Melissa", "Nicole"];
var copy = names.slice();
var cnt=1;
while( copy.length )
{
var name = copy.splice( Math.floor(Math.random()*copy.length), 1 );
console.log(name)
Qualtrics.SurveyEngine.addEmbeddedData("name"+cnt, name);
cnt+=1
}
jQuery('#Wrapper').css('visibility','hidden');
jQuery('#Wrapper').css('opacity','0');
jQuery('#NextButton').click();
});
My problem is that i have to recorder the order that was presented to each participant. How can I do that ?
Ideally, the order should be recorded in the response data.
Thank you very much for your help and have a good day !
Best answer by rondev
View original