Search the knowledge base, browse our resources, and visit our forum for more detailed information
Last updated: 21 Mar 2026
The Question Matrix question type allows you to create a structured table of questions, where each column represents a question and each row represents an item. Instead of creating multiple separate questions, you can group them into a single matrix to make your form more organized and efficient for data collection.
This article explains how to add and configure a question matrix in the Formbuilder, how it appears during data collection, and how to apply advanced logic using XLSForm when needed.
Note: Question matrices are supported only in Enketo web forms with the Grid theme enabled. They are not supported in KoboCollect.
To add a question matrix to your form:
Click the button.
Enter an overarching instruction as the question label.
Click + ADD QUESTION.
Choose the Question Matrix question type.

In your question matrix:
Each column represents a separate question that will be repeated for every item listed in the rows.
Each row represents an item that the column questions will be asked about.

To configure your question matrix, for each column:
Click the Settings icon.
Select the Response Type.
Available types include Select One, Select Many, Text, and Number.
You can use different question types within the same matrix.
Enter a Question Label.
Enter a Data Column Suffix. This suffix will be appended to the variable names for each item in the rows and must follow the standard rules for data column names.
If using Select One or Select Many, add the answer choices and their XML values.
Set the question as required, if needed.
To add another column, click the icon to the right of the last column.
Note: You can add up to 12 columns to a question matrix. However, each additional column reduces the width available for the others, which may affect readability on smaller screens.
To configure each row:
Click the Settings icon.
Enter a Label for the item.
Enter a Data Column Prefix. This prefix will be added to the variable names for all column questions related to this item and must follow the standard rules for data column names.
To add another row, click the icon below the last row.
Question matrices are supported only in Enketo web forms and require the Grid theme to be enabled. They are not supported in KoboCollect.
The question matrix is displayed as a table, with each column representing a question and each row representing an item.

Note: When exporting data or viewing submissions in the data table, question matrix variables are converted to standard XLSForm structure. Each cell in the matrix becomes an individual variable, and the final variable names are created by combining the row’s data column prefix and the column’s data column suffix. As a result, the exported variable names may differ slightly from how the matrix appears in the Formbuilder.
You cannot add validation criteria, calculations, or certain advanced question options, such as repeating a question matrix or defining a custom constraint message, directly within a question matrix using the Formbuilder.
To apply these settings, download your form as an XLSForm and add constraints, calculations, and other question options in the XLSForm directly.
For an example of adding constraints and calculations to a question matrix, see this sample XLSForm. For an example of repeating a question matrix as a repeat group, see this sample XLSForm.
Similarly, skip logic cannot be added directly to a question matrix in the Formbuilder. However, you can download your form as an XLSForm and add skip logic in the XLSForm directly.
When exported to XLSForm, a question matrix is structured as a group of questions using w-values from the Grid theme. You can apply skip logic to the entire matrix by adding it to the entire group, or apply it to individual rows within the matrix.
Be aware that adding skip logic to individual cells may affect the visual layout of the matrix, as hidden questions can disrupt the table structure. To preserve the formatting, consider adding Note questions with skip logic that display a message in place of the hidden question, as done in this sample XLSForm. This approach maintains the matrix layout while preventing input in specific cells.

Did you find what you were looking for? Was the information clear? Was anything missing?
Share your feedback to help us improve this article!
KoboToolbox is maintained by Kobo Inc.