1,007
edits
No edit summary |
|||
Line 93: | Line 93: | ||
* surveyInfo.uploadWithExperiment: Optional. If this survey goes with another study, then set this to the ID of that study to ensure that the survey results and study results get uploaded together and can be correlated. | * surveyInfo.uploadWithExperiment: Optional. If this survey goes with another study, then set this to the ID of that study to ensure that the survey results and study results get uploaded together and can be correlated. | ||
* surveyInfo.surveyQuestions: Required. An array of question objects. See the example file below to see how to write question objects. | * surveyInfo.surveyQuestions: Required. An array of question objects. See the example file below to see how to write question objects. | ||
* surveyInfo.onPageLoad: Optional function that can execute arbitrary javascript (with chrome privileges) when the survey page loads. | |||
The presence or absence of the surveyInfo object is used by the extension to determine whether a JS module is a survey or an experiment. Any JS module that exports an object named surveyInfo will be treated as a survey. If you are writing an experiment, make sure not to export an object named surveyInfo! | The presence or absence of the surveyInfo object is used by the extension to determine whether a JS module is a survey or an experiment. Any JS module that exports an object named surveyInfo will be treated as a survey. If you are writing an experiment, make sure not to export an object named surveyInfo! |
edits