Open
Description
Set up a radio question.
Set the possible answers to (set so values are not the same as their positional index)
2=Red
1=Blue
0=Green
Answer the survey. Select "Green". Submit the survey.
Download the results with this ticked:
- Include choice codes
The spreadsheet will list the value of the response as 3.
This seems to be because in the generate_csv function in questionnaire.class.php where it iterates choices, it simply starts at zero and uses a counter $c
to find the value , rather than looking at the actual choice value of the matched choice.
} else if (($choicecodes == 1) && ($choicetext == 1)) {
$responsetxt = $c.' : '.$content;
} else if ($choicecodes == 1) {
$responsetxt = $c;
It should look at the choice response and if it has a named response find the value of the index of the selected choice, in this case 0=Green
would show a choice code of 0
in the column.
Metadata
Metadata
Assignees
Labels
No labels