This is a custom form field plugin for the Capture app that renders multiple fields sharing the same option set as a matrix table. The plugin supports single select (radio buttons) and multi select (checkboxes).
| Part | Meaning |
|---|---|
| Rows | Form fields |
| Columns | Options from the shared option set |
| Cells | Radio buttons (single select) or checkboxes (multi select) |
Single select (radio buttons)
Multi select (checkboxes)
The plugin receives fieldsMetadata and values from the host form.
- Filters fields that include an option set
- Validates that all the fields's optionsets are the same
- Optionally sets a title on the form if supplied as part of fieldsMetaData
- Uses the first field’s option set to build table columns
- Renders each row as a field and each cell as an input
- Updates the values when a selection changes
To install the plugin, follow these steps:
- Go to the App Hub within the App Management app
- Search for "Matrix Select"
- Install the plugin
Use the Tracker Plugin Configurator app to configure the plugin.
- Install the Tracker Plugin Configurator app from the App Hub and open it.
- Select the page for form field.
- Select the configuration context.
- Click "Add configuration"
- Click "Add element" and select the "Matrix Select" from the list of plugins.
- Drag and drop the plugin to where you want it to be displayed in the form.
- Click on the "Edit settings" icon to configure the fields that will be used in the matrix.
- Save.
Fields passed to the plugin must:
- Have an option set
- Share the same options (same option set)
If these requirements are not met, the plugin will not be able to render the matrix and will display an error message.
You can supply a field whose value is used as the plugin title:
- If not already present, you can add a data element or tracked entity attribute on the form with the title text you wish to use.
- In the Tracker Plugin Configurator, include that field in the plugin inputs.
- Set its alias to
title. See photo below.
If you have existing fields that are no longer needed because they are now replaced by the plugin, you can remove them by following these steps:
- Open the Datastore Management app
- Select "capture" from the list of datastores
- Select "dataEntryForms" from the list
- Delete the fields you want to remove by deleting them from the code on the right hand side.
- Click "Save changes".



