up Inquisit Language Reference

defaultResponse property

The default text to appear in a edit box.

Member of

<openended> <textbox>

Syntax

object.name.defaultResponse

Read/Write

Type

string

Remarks

The defaultResponse property can be used to prepopulate the edit box of a textbox or openended with a given string of text.

Examples

The following displays the value of defaultResponse in a text stimulus:

<text myText>
/ items= ("defaultResponse = <% openended.foo.defaultResponse %>")
</text>

The following demonstrates how to set the default response of an openended trial to a specific value collected during runtime (a value unknown at the start of the script).

<openended foo>
/ onTrialBegin = {
  this.defaultResponse = values.previousResponse;
}
</openended>

Copyright Millisecond Software, LLC. All rights reserved.