To record the group display order, you can add a hidden
equation type question
to each group and load it with the equation below. This records the
sequential number of the group
(I have added 1 so the sequence starts at 1)
Recording the radio answer order is a little trickier...
1)
Set up your survey to use JavaScript
.
2) Add a short-text question to each group (we'll hide them with JavaScript).
3) Add the following script to the source of each short-text. This script:
- Hides the short-text question
- Loops through the radio options as displayed
- Records a comma-separated list of their answer IDs in the short-text
Code:
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
// Identify some stuff
var qHiddenID = {QID}; // The hidden question ID
var qHidden = $('#question'+qHiddenID); // The hidden question
var q1 = $('div.list-radio:eq(0)'); // First radio question on the page
var q1ID = $(q1).attr('id').split('question')[1]; // The first radio question ID
var gID = $('input.text', qHidden).attr('id').split('X')[1]; // The group ID
// Hide this question
$(qHidden).hide();
// Build an array of the Q1 answers
var answersArr = new Array();
$('input.radio', q1).each(function(i){
var answerID = $(this).attr('id').split('X'+gID+'X'+q1ID)[1];
answersArr.push(answerID);
});
// Load the array into the hidden question
$('input.text', qHidden).val(answersArr);
});
</script>
Here's your sample survey back with these modifications: