Create an interview summary of responses
With Askia 5.5.2, you have the ability to display a respondent's survey responses at the end of an interview (or send the summary to them via an email).
In order to achieve this, you need two new features only available with 5.5.2:
The first thing to do is tag the questions that you want to display in the summary:
Then, on the last screen of your survey, you can add this code into a label:
Here are your answers:
{%
Dim arrQuestions = Survey.Questions.FilterByTag("Printable")
Dim i
For i = 1 To arrQuestions.Count
If arrQuestions[i].HasNoData = False Then
Dim str
str = arrQuestions[i].ShortCaption
If arrQuestions[i].ParentLoop.Id <> DK then
str = str + "->" + arrQuestions[i].ParentLoop.CurrentIteration
Endif
str = str + "->"
if arrQuestions[i].Type ="single" or arrQuestions[i].Type ="multiple" Then
str = str + arrQuestions[i].Answers.Caption
Else
str = str+ arrQuestions[i].Value
EndIf
%}
{%= str %} <br/>
{%
EndIf
Next
%}