# Selection matrix

A grid of rows and columns where respondents select one or more values per row. Each row can be a radio (single select) or checkbox (multi select).

## Schema

| Field | Type | Description |
|  --- | --- | --- |
| `questionType` | `"selectionmatrix"` | Identifies this as a selection matrix |
| `selectionmatrix.rows` | array | Row definitions with `type`, `text`, and `_id` |
| `selectionmatrix.rows[].type` | string | `"radio"` for single select or `"checkbox"` for multi select |
| `selectionmatrix.columns` | array | Column headers with `text` and `_id` |


```json
{
  "_id": "6a0ef7e93affac35058b0688",
  "questionType": "selectionmatrix",
  "question": "Selection matrix question",
  "displayOrder": 3,
  "isRequired": false,
  "isDeleted": false,
  "isActive": false,
  "description": "Selection matrix helper text",
  "selectionmatrix": {
    "rows": [
      { "type": "radio", "text": "Row", "_id": "6a0ef7e93affac35058b0684" },
      { "type": "checkbox", "text": "Row", "_id": "6a0ef7e93affac35058b0685" }
    ],
    "columns": [
      { "text": "Column", "_id": "6a0ef7e93affac35058b0686" },
      { "text": "Column", "_id": "6a0ef7e93affac35058b0687" }
    ],
    "_id": "6a0ef88ba7a40272efec3c65"
  }
}
```