Skip to content

Matrix Column Schema

Matrix column objects define the fields shown across each row in matrixdropdown and matrixdynamic questions.

{
"name": "quantity",
"title": "Quantity",
"cellType": "text",
"inputType": "number",
"isRequired": true
}
  • Type: string
  • Required: Yes

Stored key for this column inside each matrix row value.

  • Type: string
  • Localizable: Yes

Visible column label.

  • Type: string
  • Allowed values: dropdown, checkbox, radiogroup, tagbox, text, comment, boolean, expression, rating, slider

Question type used inside cells for this column. Overrides the matrix-level cellType.

  • Type: choiceitem[]

Choices for dropdown, checkbox, radiogroup, or tagbox cells.

  • Type: string

Input type for text cells, for example text, number, email, or date.

  • Type: boolean

Requires a value in this column.

  • Type: condition

Controls column visibility.

{
"type": "matrixdynamic",
"name": "lineItems",
"title": "Line items",
"columns": [
{ "name": "item", "title": "Item", "cellType": "text", "isRequired": true },
{ "name": "quantity", "title": "Quantity", "cellType": "text", "inputType": "number" },
{
"name": "priority",
"title": "Priority",
"cellType": "dropdown",
"choices": ["Low", "Medium", "High"]
}
]
}