logo SmartSurvey / Scripting Docs
Back to Docs
Question Type
2 Multiple Response Choice *MR

Allows the respondent to select one or more options from a list. Each selected option is independently flagged. Use numberofresponse[] to count selections.

Type ID 2
Directive *MR
Category Choice
Script Definition
script definition (.q)
*QUESTION Q2 *MR
Q2. Which of these brands have you heard of? (Select all that apply)
1:Brand A
2:Brand B
3:Brand C
4:Brand D
5:None of the above

-- Capturing Verbatim for "Other" using *OPEN:
*QUESTION Q2 *MR
Q2. Which of these brands have you heard of? (Select all that apply)
1:Brand A
2:Brand B
3:Brand C
4:Brand D
5:Other (Please Specify) *OPEN

-- To mark an option as exclusive (e.g. "None of These"), append *NMUL to that option:
*QUESTION Q2 *MR
Q2. Which of these brands have you heard of? (Select all that apply)
1:Brand A
2:Brand B
3:Brand C
4:Brand D
9:None of these *NMUL

-- Limiting the Number of Selections with *MIN and *MAX:
*QUESTION Q2 *MR *MIN 1 *MAX 3
Q2. Which of these brands have you heard of? (Select all that apply)
1:Brand A
2:Brand B
3:Brand C
4:Brand D
5:None of the above

-- Rotating Answer Options Randomly with *ROT:
*QUESTION Q2 *MR *ROT
Q2. Which of these brands have you heard of? (Select all that apply)
1:Brand A
2:Brand B
3:Brand C
4:Brand D
9:None of these *NMUL

-- Randomize Answer Options with *RANDOM:
*QUESTION Q2 *MR *RANDOM
Q2. Which of these brands have you heard of? (Select all that apply)
1:Brand A
2:Brand B
3:Brand C
4:Brand D
9:None of these *NMUL
Use in Expressions
expressions
Q2=1               -- BrandA was selected (alongside others)
Q2=5               -- "None of the above" was selected
numberofresponse[Q2]>=2   -- at least 2 brands selected
numberofresponse[Q2]=1    -- exactly one brand selected
Q2=value tests whether that specific option was selected — it does not mean exclusively. Multiple values can be true simultaneously.
Do not use Q2=0 to mean "nothing selected". Use numberofresponse[Q2]=0 instead.
Related