The default text to appear in a edit box.
object.name.defaultResponse
Read/Write
string
The defaultResponse property can be used to prepopulate the edit box of a textbox or openended with a given string of text.
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>