code
Experiments Surveys & forms
code is a form/survey column intended as a researcher chosen label for a survey question. It has no effect on what participants see. Its only practical value is that, like every recognized column, its cell value is copied verbatim into the results row for the trial, so it can label questions in the output data.
Syntax
Section titled “Syntax”Type any label you like in the cell, one per row (for example age_question). The value is free text: it is never parsed and has no format constraints.
Options
Section titled “Options”| Value | Effect |
|---|---|
| empty cell | none |
| any other string | none on screen; echoed into results |
Defaults & missing values
Section titled “Defaults & missing values”If the column is absent or a cell is left blank, the question simply has no label; the experiment behaves identically either way. The column header is matched case-insensitively.
Works with
Section titled “Works with”responseType: whether a survey row is display-only text or a question is decided byresponseTypealone;codeplays no part in it.- Results output: the cell value is copied into each trial’s results row, the same as any other recognized column, so it can identify questions in your data.
Examples
Section titled “Examples”| type | head | responseType | responseOptions | code |
|---|---|---|---|---|
| form | How old are you? | box | age_question | |
| form | Rate your mood | likert | 1;2;3;4;5 | mood_likert |
type,head,responseType,responseOptions,code form,How old are you?,box,,age_question form,Rate your mood,likert,1;2;3;4;5,mood_likert
The code values change nothing on screen; they appear in the code column of the results file next to each response, which is useful when the head text is long.
Tips & gotchas
Section titled “Tips & gotchas”- The column is purely a label for your results.
- A survey row with an empty
responseTypecell renders as a display-only text block regardless of whatcodecontains.