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.