logo SmartSurvey / Scripting Docs
Back to Docs
Question Type
22 AutoComplete Choice *SR (autocomplete)

A single-response question rendered as a text field with autocomplete suggestions. Suitable for large option lists (brands, cities, products). Stored value is the option code, identical to a standard *SR.

Type ID 22
Directive *SR (autocomplete)
Category Choice
Script Definition
script definition (.q)
*SR 'Q22' 'Which mobile brand do you own?'
TYPE:AUTOCOMPLETE
1:Samsung
2:Apple
3:Xiaomi
4:Oppo
5:Vivo
/
Use in Expressions
expressions
Q22=1              -- owns Samsung
Q22!=2             -- does not own Apple
Q22=1 | Q22=3      -- owns Samsung or Xiaomi
Expression syntax is identical to a standard *SR question. TYPE:AUTOCOMPLETE only changes the UI rendering.
Related