title: Record answer randomization in Qualtrics using javascript
body: <p>I am making a survey in Qualtrics. This survey has a repeating question with six answer choices. The six choices are randomized (in the standard way, no javascript). The question is being repeated using loop&amp;merge, which works great because it's the same question structure over and over (36 times), but I can use the field function to adjust the question and answers for every iteration.</p>
  
  <p>However, one problem I am running into is that Qualtrics does not (as standard) support the recording of the randomization data in the results - i.e. how it has randomized the six answer choices in each iteration. When I use the 'Export Randomized Viewing Order data' function when downloading results, it only shows the answer order of the last time it asked the question. So it seems that this is a value that gets overwritten after each iteration.</p>
  
  <p>So now I'm looking to record the answer order for each iteration through javascript.  However, I haven't found a function that gives the order answer (after randomization). I have consulted the <a href="https://eu.qualtrics.com/WRAPI/QuestionAPI/classes/Qualtrics%20JavaScript%20Question%20API.html" rel="nofollow">Qualtrics javascript API</a> and found some functions that seem promising, such as getChoices (), but when I try this all I get back is the order of answers without randomization (i.e. just 1,2,3,4,5,6).</p>
  
  <p>Does anyone know a way to record the randomized choice order for each iteration, using javascript or otherwise?</p>