Matrix Table with Custom Cell Types

Edit in →

Multi-Select Matrix and Dynamic Matrix questions allow respondents to answer questions within matrix cells using a number of built-in editors. This example shows how you can extend the number of available cell editors by using other editors from SurveyJS Form Library or by implementing a custom editor. Read more...

Themes
Color palette
Question appearance
Sorry, we can't retrieve the data from server. Please comeback later.

Multi-Select Matrix and Dynamic Matrix questions allow respondents to answer questions within matrix cells using a number of built-in editors. This example shows how you can extend the number of available cell editors by using other editors from SurveyJS Form Library or by implementing a custom editor.

By default, Multi-Select Matrix and Dynamic Matrix columns support the cell editors listed in the cellType property description. These cell editors are based upon standalone question types from SurveyJS Form Library. However, the library also includes other question types. To use them as matrix cell editors, add a property named as the question type to the matrixDropdownCellTypes object and assign an empty object to this property. The following code shows how to add the File Upload question type to the list of supported cell editors:

import { matrixDropdownColumnTypes } from "survey-core";

matrixDropdownColumnTypes.file = {};

Now, you can create a File Upload matrix column by setting its cellType property to "file" in the survey JSON schema. To configure the column, you can use the properties of the standalone question type. For instance, this demo enables the allowMultiple property for the File Upload column (see the survey.json file).

The same instructions apply if you want to use a custom question type as a matrix cell editor.

Your cookie settings

We use cookies on our site to make your browsing experience more convenient and personal. In some cases, they are essential to making the site work properly. By clicking "Accept All", you consent to the use of all cookies in accordance with our Terms of Use & Privacy Statement. However, you may visit "Cookie settings" to provide a controlled consent.

Your renewal subscription expires soon.

Since the license is perpetual, you will still have permanent access to the product versions released within the first 12 month of the original purchase date.

If you wish to continue receiving technical support from our Help Desk specialists and maintain access to the latest product updates, make sure to renew your subscription by clicking the "Renew" button below.

Your renewal subscription has expired.

Since the license is perpetual, you will still have permanent access to the product versions released within the first 12 month of the original purchase date.

If you wish to continue receiving technical support from our Help Desk specialists and maintain access to the latest product updates, make sure to renew your subscription by clicking the "Renew" button below.