Skip to content

Select several answers

Let a labeler record every issue that applies to a delivery.

Late delivery and Damaged packaging are selected; Missing contents is not.Late delivery and Damaged packaging are selected; Missing contents is not.
Captured from this recipe’s downloadable configuration and sample data. Select image to enlarge.

Try this example: download the complete configuration and sample CSV. Open the configuration in MLabel, then load the CSV.

View the complete configuration
{
"$schema": "https://mlabel.vlad.gg/mlabel.schema.json",
"version": 2,
"network": {
"updateChecks": false,
},
"input": {
"fields": [
{
"name": "id",
"type": "text",
"display": "Record ID",
},
{
"name": "comment",
"type": "text",
"display": {
"title": "Customer comment",
"titlePosition": "above",
},
},
],
},
"output": {
"fields": [
{
"name": "id",
"type": "text",
"fill": {
"kind": "copy",
},
},
{
"name": "issues",
"type": "array",
"display": "Problems present",
"required": false,
"items": {
"type": "enum",
"choices": [
{
"name": "delivery",
"display": "Late delivery",
"shortcut": "d",
},
{
"name": "packaging",
"display": "Damaged packaging",
"shortcut": "p",
},
{
"name": "contents",
"display": "Missing contents",
"shortcut": "m",
},
],
},
},
],
},
}
View the sample CSV
id,comment
r001,The parcel arrived late and the box was torn.

Put an array of enum choices in output.fields. Each choice becomes a checkbox. Set required: false when an empty selection is a valid “no issues” answer.

The example includes D, P, and M shortcuts. They toggle a choice on or off. A labeler can also click each checkbox.

The relevant setting is in output.fields.1. The download above includes the surrounding configuration.

{
"name": "issues",
"type": "array",
"display": "Problems present",
"required": false,
"items": {
"type": "enum",
"choices": [
{
"name": "delivery",
"display": "Late delivery",
"shortcut": "d",
},
{
"name": "packaging",
"display": "Damaged packaging",
"shortcut": "p",
},
{
"name": "contents",
"display": "Missing contents",
"shortcut": "m",
},
],
},
}

Select Damaged packaging, then Late delivery, and export with Save. The issues cell contains ["delivery","packaging"]: configured order, even if the labeler clicked in a different order. CSV adds quotation marks around the JSON array.

Try again with no boxes selected. Because the field is optional, the record can still be exported. A required multi-select needs at least one selection; use a separate explicit “None” decision if your project needs proof that someone reviewed every record.

Browse all illustrated recipes →