up Inquisit Language Reference

textbox element

The textbox element defines a survey item in which respondents enter free text.

Attributes

<textbox name>
/ mask = constraint
/ mask = regex

/ maxChars = integer
/ maxChars = expression

/ minChars = integer
/ minChars = expression

/ multiline = boolean
/ range = (min, max)
/ range = (minexpression, maxexpression)

/ textboxSize = (width, height)
/ textboxSize = (widthexpression, heightexpression)

/ caption = text
/ correctResponse = (character, character,...)
/ correctResponse = (scancode, scancode, ...)
/ correctResponse = (anyResponse, noResponse, ...)
/ correctResponse = (stimulusname, stimulusname, ...)
/ correctResponse = (mouseevent, mouseevent, ...)
/ correctResponse = (gamepadstickevent, gamepadevent, ...)
/ correctResponse = (joystickevent, joystickevent, ...)
/ correctResponse = (word, word, ...)
/ correctResponse = (response)
/ correctResponse = (expression, expression, ...)

/ defaultResponse = text
/ defaultResponse = integer
/ defaultResponse = expression

/ fontStyle = (name, height, bold, italic, underline, strikeout, quality, characterset)
/ monkeyResponse = (character, character,...)
/ monkeyResponse = (scancode, scancode, ...)
/ monkeyResponse = (anyResponse, noResponse, ...)
/ monkeyResponse = (stimulusname, stimulusname, ...)
/ monkeyResponse = (mouseevent, mouseevent, ...)
/ monkeyResponse = (gamepadevent, gamepadevent, ...)
/ monkeyResponse = (joystickevent, joystickevent, ...)
/ monkeyResponse = (word, word, ...)
/ monkeyResponse = (keyword)
/ monkeyResponse = (expression, expression, ...)

/ orientation = layout
/ position = (x, y)
/ position = (xexpression, yexpression)

/ required = boolean
/ required = expression

/ responseFontStyle = (name, height, bold, italic, underline, strikeout, quality, characterset)
/ size = (width, height)
/ size = (widthexpression, heightexpression)

/ subcaption = string
/ subcaptionFontStyle = (name, height, bold, italic, underline, strikeout, quality, characterset)
/ txColor = colorname
/ txColor = expression

/ validResponse = (character, character,...)
/ validResponse = (scancode, scancode, ...)
/ validResponse = (anyResponse, noResponse, ...)
/ validResponse = (stimulusname, stimulusname, ...)
/ validResponse = (mouseevent, mouseevent, ...)
/ validResponse = (gamepadevent, gamepadevent, ...)
/ validResponse = (joystickevent, joystickevent, ...)
/ validResponse = (word, word, ...)
/ validResponse = (keyword)
/ validResponse = (expression, expression, ...)

</textbox>

Properties

textbox.name.defaultResponse
textbox.name.maxChars
textbox.name.maxValue
textbox.name.minChars
textbox.name.minValue
textbox.name.caption
textbox.name.fontHeight
textbox.name.height
textbox.name.heightPct
textbox.name.heightPx
textbox.name.hPosition
textbox.name.required
textbox.name.response
textbox.name.responseFontHeight
textbox.name.responseText
textbox.name.subcaption
textbox.name.subcaptionFontHeight
textbox.name.vPosition
textbox.name.width
textbox.name.widthPct
textbox.name.widthPx
textbox.name.x
textbox.name.xPct
textbox.name.xPx
textbox.name.y
textbox.name.yPct
textbox.name.yPx
textbox.name.name
textbox.name.typeName

Functions

None.

Remarks

The textbox element has a powerful set of features for validating and constraining the range of permissible input. See the mask attribute for details.

Examples

The following textbox item asks the respondent to enter their age, constraining the response to be a positive integer between 18 and 120.

<textbox q1>
/ caption="Please enter your age."
/ mask=positiveinteger
/ range = (18, 120)
</textbox>

Copyright Millisecond Software, LLC. All rights reserved.