lengthof[Qx]
String
Returns the character count of a text response. Use to enforce minimum or maximum length requirements or to check whether the respondent entered anything.
Parameters
| Parameter | Type | Description |
|---|---|---|
Qx |
Question ref | An *OPEN text question |
Returns: Integer — number of characters in the text response
Examples
expressions
lengthof[Q3]>0 -- some text was entered lengthof[Q3]>=10 -- at least 10 characters lengthof[Q3]<=200 -- within 200-character limit
Use lengthof[Q3]>0 as a validation condition to ensure the respondent filled in an open field.