MatrixChoiceField) allows you to group multiple related questions into a single, cohesive table. It is perfect for Likert scale surveys (e.g., “Rate the following aspects of our service from 1 to 5”) or bulk product selections.
Business Use Cases
Likert Surveys
“How satisfied are you with…” (Rows: Support, Product, Pricing | Cols: 1 to 5).
Bulk Order Forms
“Select your uniform sizes.” (Rows: Small, Medium, Large | Cols: Red, Blue, Green).
Feature Prioritization
“Rank these features by importance.” (Rows: Features | Cols: Must Have, Nice to Have, Do Not Build).
Configuration & Usage
1
Deploy to Canvas
Drag the Matrix Choice block from the Component Catalog onto the Canvas.
2
Define the Grid
Configure the Rows (the subjects or items being evaluated) and the Columns (the scale, answers, or rating options).
3
Choose the Mode
Decide if the user can pick only one answer per row (
Radio mode) or multiple answers per row (Checkbox mode).Technical Configuration Schemas
- Grid Configuration
- Visuals & UI
- Advanced Locking Logic
array
required
The list of items to evaluate. Each row is defined as a key-value pair (e.g.,
cleanliness => “Cleanliness of the room”).array
required
The scale or choices available for each row. Defined as a key-value pair (e.g.,
5 => “Excellent”, 1 => “Poor”).string
Defines the selection logic:
radio: Only one choice can be made per row.checkbox: Multiple choices can be selected per row.
Data Payload Architecture
Because a Matrix is fundamentally a grid of questions, the data is saved as a JSON object where the keys are the rows, and the values are the selected columns.Deep Dive: Complex Cell Locking
The Matrix Choice field supports complex, cell-level locking logic to prevent impossible combinations. If you are using a Matrix for an order form (Rows = Shirt Sizes, Columns = Colors), but you are out of stock for “Small Red” shirts, you can use thedisabled_cells parameter to explicitly block the coordinate size_small:color_red.
This prevents users from ordering inventory that doesn’t exist, maintaining data integrity without having to delete the row or column entirely.
Best Practices & FAQs
Width Limits
Width Limits
UX Rule: Do not add more than 7 columns to a Matrix. Anything beyond that becomes cognitively overwhelming for the user and visually cluttered on tablets, forcing horizontal scrolling.