The data used to build the questionnaire. data is bound to
$scope.questionnaireData on the enclosing scope.
Properties:
| Name | Type | Description |
|---|---|---|
title |
string | The title of the questionnaire (optional) |
introductoryText |
string | A block of introductory text for the questionnaire (optional) |
structure |
Array.<questionnaireStructureEntry> | An array of questions for the questionnaire (see questionnaireStructureEntry) (optional) |
Type Definitions
questionnaireStructureEntry
Represents an individual question in a questionnaire.
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
questionType |
string | The question type. Supported
|
questionId |
string | All question types support this property. It should be a single-word string that uniquely identifies this question within this questionnaire. (required) |
questionLabel |
string | All question types support this property. It should be a string that contains the text of the question itself (e.g., 'How old are you?') (optional) |
questionStoragePath |
string | All question types support this property. It should be a 'keypath' into the TrialData.data object at which the response to this question should be stored. See TrialData#setValueForPath for more information on these keypaths. (required) |
questionIsAssociatedToMedia |
boolean | All question
types support this property. The value of this property
specifies that a question corresponds to a particular media
excerpt by taking a Boolean true or false as its value. When
this value is set to true, multiple responses for
questions with the same questionStoragePath property are
stored in an ordered array that is used as the value for
the For example, in the demonstration study provided with the
framework, two media excerpts are played. We present the same
questionnaire to the participant following each media
excerpt. In order to specify that responses on the
questionnaire following the first excerpt are associated
with the first excerpt (and the same for the second
questionnaire and excerpt), the values for
Here, the participant chose a value of |
questionRequired |
boolean | All question types
support this property. If its value is
|
questionLabelType |
string | This property is used
by the |
questionLikertMinimumDescription |
string | This
property is used by the |
questionLikertMaximumDescription |
string | This
property is used by the |
questionLikertSingleImageSrc |
string | This
property is used by the |
questionLikertLeftImageSrc |
string | This
property is used by the |
questionLikertRightImageSrc |
string | This
property is used by the |
questionOptions |
Object | This property is used and
required by all question types. In general, each question
type requires that this be an object that has a |