Matrix Question with Custom Cell Types

Edit in →

Multi-Select and Dynamic Matrix question types provide built-in support for a number of cell editors, such as drop-down menus, radio button groups, text input fields, etc. If the built-in functionality doesn't suit your use case, you can extend the collection of available cell editors by implementing a custom editor or by using other editors from SurveyJS Form Library, as demonstrated in this example.

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 matrixDropdownColumnTypes object and assign an empty object to this property. This demo and 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, users can select File Upload from the Cell input type drop-down menu when they click a matrix column. File Upload properties also become available for configuration in the Property Grid.

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.