logo SmartSurvey / Scripting Docs
Back to Docs
Question Type
1 Single Response Choice *SR

Presents a list of coded options and captures exactly one selection from the respondent. The most common question type in survey scripts. The answer is stored as the selected option code (integer).

Type ID 1
Directive *SR
Category Choice
Script Definition
script definition (.q)
*QUESTION Q1 *SR
Q1. Which brand do you use most often?
1:Brand A
2:Brand B
3:Brand C
4:Other

-- Capturing Verbatim for "Other" using *OPEN:
*QUESTION Q1 *SR
Q1. Which brand do you use most often?
1:Brand A
2:Brand B
3:Brand C
4:Other (Please Specify) *OPEN

-- Rotating Answer Options Randomly with *ROT:
*QUESTION Q1 *SR *ROT
Q1. Which brand do you use most often?
1:Brand A
2:Brand B
3:Brand C
4:Other

-- Randomize Answer Options with *RANDOM:
*QUESTION Q1 *SR *RANDOM
Q1. Which brand do you use most often?
1:Brand A
2:Brand B
3:Brand C
4:Other
Use in Expressions
expressions
Q1=1               -- respondent chose BrandA
Q1!=3              -- did not choose BrandC
Q1=1 | Q1=2        -- chose BrandA or BrandB
Q1>=2 & Q1<=4      -- chose option 2, 3, or 4
The response value equals the option code. Use Q1=value to test a specific selection.
For autocomplete or dropdown UI variants, use qtype 22 or 24 respectively.
Related