Text Response¶
A text response allows participants to answer a question or leave a comment by typing in a text box.
Required Properties¶
type¶
Optional Properties¶
delay¶
- Definition: Delay the displaying of a response (relative to the latest onset of all stimuli on a given trial) by a certain number of seconds. This setting can be useful for forcing participants to read some text before making a response.
- Possible values: Any numeric value (fractions are supported)
- Default value:
0
duration_timer¶
duration_timer_onset¶
Dependencies
Requires duration_timer
to be set to "true".
- Definition: When to show the duration timer. When set to
"start"
, the timer will appear as soon as the response is displayed and animate a stopwatch effect. When set to"end"
, the duration timer will only appear once the participant has made a reponse with no stopwatch effect. - Possible values:
"start"
,"end"
- Default:
start
height¶
instruction¶
- Definition: A string of text providing instructions for participants about the current response. Use empty quotes (
""
) to remove the instruction text. - Possible values: A string of text
- Default value: "Type your answer here:"
max_characters¶
min_characters¶
min_seconds¶
- Definition: The minimum number of seconds that a participant must wait before they can submit their response.
- Possible values: A number in seconds
- Default value:
0
, meaning no restrictions.
Note
Participants will still be able to begin typing before the min_seconds
duration. This feature simply prevents participants from submitting what they've written before the min_seconds
duration. This feature may have varying effectiveness in encouraging a longer response from participant to participant.
parent¶
- Definition: If specified, this response will inherit all properties from another defined response (aka, the parent), unless the same property is explicitly defined in this response.
- Possible values: The name of another defined response.
required¶
spellcheck¶
- Definition: If set to
false
, the text response will not alert participants about potential misspelled words, which is useful if participants are supposed to type non-dictionary words. - Possible values:
true
,false
- Default value:
true
Note
Spellcheck functions are provided by the browser and may differ between browsers.
target¶
-
Definition: The expected response. If the participant enters the same response, it would be marked as "correct" in the participant data CSV.
Note
All leading and trailing whitespaces in the participant's response will be removed before being compared to the target.
-
Possible values: Any string of text
- Default value: Not set
- See also:
target_match
target_match¶
Dependencies
Requires target
to be defined.
- Definition: If set to
true
, participants must type in an answer that matches the target as defined above in order to continue the study (a good use case of this feature is to implement a passcode). - Possible values:
true
,false
- Default value:
false
- See also:
target
timeout¶
- Definition: The number of seconds for which the participant can type their response. When the timeout duration passes, the text box will be immediately disabled and the response typed in by the participant will be automatically submitted.
- Possible values: A number in seconds
- Default: Not set, meaning the response will not time out
- See also:
min_seconds
width¶
Recorded Data¶
- value: the text typed in by the participant
- rt: reaction time, defined as the number of milliseconds between when the text box starts accepting input and the moment when the participant submits their response