logo SmartSurvey / Scripting Docs
Back to Docs
Question Type
8 Multiple Grid Grid *GRIDMR

A grid where each row allows multiple column selections (multi-select per row). Unlike Single Grid, the respondent is not restricted to one choice per row. Use numberofresponse[] to count total cells selected.

Type ID 8
Directive *GRIDMR
Category Grid
Script Definition
script definition (.q)
-- Step 1: Define the column options once using *GRIDLIST.
-- Give it a name so it can be reused by multiple grid questions.
*GRIDLIST "Channels"
1:TV
2:Radio
3:Online
4:Print

-- Step 2: Define the grid question and attach the list with *USEGRIDLIST.
*QUESTION Q8 *GRIDMR *USEGRIDLIST "Channels"
Q8. Which channels do you use for each purpose? (Select all that apply)
1:Entertainment
2:News
3:Shopping

-- Capturing Verbatim for "Others" using *OPEN:
-- Append *OPEN to the option line inside *GRIDLIST to capture a free-text
-- verbatim whenever that column option is selected in any row.
*GRIDLIST "Channels"
1:TV
2:Radio
3:Online
4:Print
9:Others *OPEN

*QUESTION Q8 *GRIDMR *USEGRIDLIST "Channels"
Q8. Which channels do you use for each purpose? (Select all that apply)
1:Entertainment
2:News
3:Shopping

-- Mutually Exclusive "None" option using *NMUL:
-- Append *NMUL to the option line inside *GRIDLIST to make that column
-- exclusive — selecting it prevents any other column from being chosen in that row.
*GRIDLIST "Channels"
1:TV
2:Radio
3:Online
4:Print
9:None *NMUL

*QUESTION Q8 *GRIDMR *USEGRIDLIST "Channels"
Q8. Which channels do you use for each purpose? (Select all that apply)
1:Entertainment
2:News
3:Shopping
Use in Expressions
expressions
Q8=1                       -- TV was selected in at least one row
numberofresponse[Q8]>=3    -- at least 3 total cell selections
numberofresponse[Q8]=0     -- no selections made
Each row can have multiple column selections, unlike *GRIDSR where each row has exactly one selection.
Related