diff --git a/docs/plugins/survey.md b/docs/plugins/survey.md index b429e73b..97ab9598 100644 --- a/docs/plugins/survey.md +++ b/docs/plugins/survey.md @@ -94,7 +94,7 @@ In addition to the [default data collected by all plugins](../overview/plugins.m Name | Type | Value -----|------|------ -response | object | An object containing the response to each question. The object will have a separate key (variable) for each question, with the first question on the first page being recorded in `P0_Q0`, the second question on the first page in `P0_Q1`, and so on. If the `name` parameter is defined for the question, then the response object will use the value of `name` as the key for each question. The response type will depend on the question type. This will be encoded as a JSON string when data is saved using the `.json()` or `.csv()` functions. | +response | object | An object containing the response to each question. The object will have a separate key (variable) for each question, with the first question on the first page being recorded in `P0_Q0`, the second question on the first page in `P0_Q1`, and so on. If the `name` parameter is defined for the question, then the response object will use the value of `name` as the key for each question. The response type will depend on the question type. This will be encoded as a JSON string when data is saved using the `.json()` or `.csv()` functions. Note that, if any questions use the `other` option (`add_other_option: true`), then the response value will be the `other_option_text` (e.g. "Other") and any text written in the textbox will be saved as "(question name)-Comment". | rt | numeric | The response time in milliseconds for the subject to make a response. The time is measured from when the questions first appear on the screen until the subject's response(s) are submitted. | question_order | array | An array with the order of questions. For example `[2,0,1]` would indicate that the first question was `trial.questions[2]` (the third item in the `questions` parameter), the second question was `trial.questions[0]`, and the final question was `trial.questions[1]`. This will be encoded as a JSON string when data is saved using the `.json()` or `.csv()` functions. | diff --git a/packages/plugin-survey/example.html b/packages/plugin-survey/example.html index 4e207e92..bb7b7f62 100644 --- a/packages/plugin-survey/example.html +++ b/packages/plugin-survey/example.html @@ -28,7 +28,7 @@ [ {type: 'multi-choice', prompt: 'This is a multi-choice question with options in one column (the default).', options: options}, {type: 'multi-choice', prompt: 'This is a multi-choice question with options in one row.', options: options, columns: 0}, - {type: 'multi-choice', prompt: 'This is a multi-choice question with options in two columns.', options: options, columns: 2}, + {type: 'multi-choice', prompt: 'This is a multi-choice question with options in two columns, with an "other" option.', options: options, columns: 2, add_other_option: true}, {type: 'html', prompt: '
Another HTML question type.
Don't forget to answer the next question!