up Inquisit Language Reference

defaultResponse attribute

The defaultResponse attribute presets the response of a survey item to a specified value.

Member of

<openended> <sliderTrial> <checkboxes> <dropdown> <image> <listbox> <radioButtons> <slider> <textbox>

Syntax

/ defaultResponse = text

or

/ defaultResponse = integer

or

/ defaultResponse = expression

Parameters

Name Type Description
text string A string specifying the defaultResponse for a survey item, slidertrial, or openended trial.
integer integer An integer specifying the defaultResponse for a survey item, slidertrial, or openended trial.
expression value An expressoin specifying the defaultResponse for a survey item, slidertrial, or openended trial.

Remarks

When defaultResponse is specified for a survey item, that response for the item is preset to the specified value the first time the item appears on a survey page. For multiple choice items, the defaultResponse determines which item is selected. For textbox items, the textbox is prepopulated with the text of the defaultResponse.

Examples


Copyright Millisecond Software, LLC. All rights reserved.