Track Question or Block Display Order
From QualtricsWiki
This allows you to track the display order of different questions or blocks when randomly presenting questions or blocks.
Javascript to use (referenced in section below):
Header (Only needed once per page)
<input type=hidden id='DO' name='ED~DisplayOrder' value='${e://Field/DisplayOrder}'>
For each question / block you want to track
1. Would be placed on first question...
<script>$('DO').value = $('DO').value + "1,";</script>
2. Would be placed on second question for each question / block you want to track...
<script>$('DO').value = $('DO').value + "2,";</script>
3. Continue with remaining questions, just changing the number accordingly.
The first line:
<input type=hidden id='DO' name='ED~DisplayOrder' value='${e://Field/DisplayOrder}'>
- This is just placed in the Source view of the Header (Look and Feel -> Header -> Edit -> Source button).
The following line is for individual questions:
<script>$('DO').value = $('DO').value + "1,";</script>
- This is placed in the source or code view of each individual question where you want to keep track of the order. Where it says "1,", you can change it to whatever you want, such as "satisfaction scale," or something else that describes the question better. I had it set to 1 because my test questions were just called "question 1", "question 2", etc. For each question you place that code into, you'll want to make sure the identifier is different. So "1," should then be changed to "2,", "3,", etc.
You will want to make sure to include the "DisplayOrder" embedded data in the survey flow so the column is displayed in your results files when you are ready to view your data.
Above is a small image that shows how the information will appear in Excel. In my example survey, the order of my questions first displayed as question 1, question 2, question 4, and question 3, which is why my column for the response shows "1,2,4,3,".
Note: If you wanted to keep track of the order of question blocks being displayed, then you would just place the individual question code into one of the questions that will for sure be displayed in that question block (if the block is displayed). You wouldn't need to place it into each question in the block, as that would provide more information than is necessary in the embedded data column.
Note: If you wanted to keep track of the order of different sections of the survey, you would want to change the field name of the embedded data for each section. So "DisplayOrder" might become "DisplayOrder2", and "DO" would become "DO2", etc.

