[[answers()]]
This translation is older than the original page and might be outdated. See what has changed.
Translations of this page:
 

This is an old revision of the document!


Table of Contents

answers()

The function answers() shows the participant's responses to an individual question. A print preview of the questionnaire can be created with the help of this function.

void answers(string questionID, [array items])

  • questionID
    The 4-figure question ID to be displayed Die 4-stellige Kennung der Frage, die angezeigt werden soll.
  • items (optional)
    Only display selected items or options Nur ausgewählte Items oder Optionen anzeigen.

Tips

Note: The function answers() is still being developed. It only supports selected question types up to this point (selection, text input, fully labeled scale among others). The question display in print preview can still be changed in the further stages of development.

Note: By default, answers() only shows items that have been answered – or in a selection question – only options that have been selected. Use answersOption() to adjust this.

Note: A respondent's answers can only be shown after they have been transmitted to the survey sever using the “Next” button. Therefore, do not use the answers() function on the same page as the question is asked.

Tip: Use answersPrint() in order to show multiple, or all questions in the questionnaire.

Example

answers('AB01');
answers('AB02');
answers('AB03');
en/create/functions/answers.1428940973.txt.gz · Last modified: 13.04.2015 18:02 by alexander.ritter
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki