The maxChars attribute determines the maximum number of characters allowed for a response.
<textbox>
or
/ maxChars = expressionName | Type | Description |
---|---|---|
integer | integer | An integer specifying a the maximum number of characters allowed. |
expression | value | An expression resolving to an integer specifying a the maximum number of characters allowed. |
When the number of characters typed by the respondent reaches this limit, additional typing is ignored (unless the respondent first deletes characters).
The following allows subjects to enter responses up to 2 characters.
<textbox question>
/ caption="Enter your age"
/ maxChars = 2
</textbox>