Hi!
I want to present a question with text followed by two audio files. However, I would like the order of the two audios to be presented randomly. Does anyone know how I could use code to achieve this?
Thank you very much!
Solved
Randomize order of two audio files within a question
Best answer by TomG
mfcl ,
Put your audio tags in divs with the same class, like this:
Then use this JS:
Qualtrics.SurveyEngine.addOnload(function() {
var audios = jQuery("#"+this.questionId+" .audio");
if(Math.random() > 0.5) audios.last().after(audios.first());
});
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

Survey Flow