Randomize Stimuli into Multiple Blocks | XM Community
Skip to main content

I am working on a survey to have participants rate words on three different scales. The bank of word stimuli has several thousand words. We need participants to get a random selection of the words and rate that selection on three different scales.

 

Right now, we have the rating scales built into different blocks. Is there a way to ensure that the words selected for rating block 1 are the same for rating blocks 2 and 3? Also, is there a way to create a stimulus bank that each block pulls from, rather than having to write them all out for each block?

 

Is there a better way to set up the survey logic than how we are approaching it?

Thank you for the input!

@AmindaO You can use Embedded field to save the randomized word and use it through out your survey. Try adding this java script at your welcome block. Change the var words array according to yours

Qualtrics.SurveyEngine.addOnload(function() {
var words = ='word1', 'word2', 'word3', 'word4','word5'];

function getRandomWord(array) {
var randomIndex = Math.floor(Math.random() * array.length);
return arrayarandomIndex];
}

var randomWord = getRandomWord(words);
Qualtrics.SurveyEngine.setEmbeddedData('RandomWord', randomWord);
});

Pip-text the word out at different block with ${e://Field/RandomWord}. Hope it helps.


You can use the approach that we usually use for max-dff.

  1. Basically, you will upload a file consisting of your word selection with different column and have different versions already set in.
  2. Then, pick 1 using a variable in survey to randomly select 1 of the version.
  3. Post that just fetch that file in survey flow and set the variables to be used in place of words.
  4. Lastly, create a loop & merge question to show the same block thrice with differnt rating questions.

Leave a Reply