3
Text Response
Text
*OPEN
Captures free-text input from the respondent. The response is stored as a string. Use lengthof[] to check character count or substrof[] to inspect specific characters.
Script Definition
script definition (.q)
*QUESTION Q3 *OPEN Q3. Please describe your experience in your own words. -- Allowing "Don't Know/Can't Say" with *DKCS: -- *DKCS defines a special opt-out code (e.g. 99) that a respondent can enter -- instead of a real text value when they do not know or cannot answer. *QUESTION Q3 *OPEN *DKCS "Don't Know/Can't Say" "99" Q3. Please describe your experience in your own words.
Use in Expressions
expressions
lengthof[Q3]>0 -- respondent provided some text lengthof[Q3]>=10 -- at least 10 characters entered substrof[Q3,0,1]='Y' -- response starts with letter Y
Direct comparison Q3=value is not supported for text questions. Use lengthof[] or substrof[].
Use lengthof[Q3]>0 in come-logic to route based on whether the respondent typed anything.