Displays options as images instead of text labels. Supports single or multiple selection with min/max limits.
Image files are referenced by fileId and listed in the form's top-level formFiles array.
| Field | Type | Description |
|---|---|---|
choice.subType | "picturechoice" | Image-based selection |
choice.options | array | Each option has text, fileId, altText, and _id |
choice.min | number | Minimum number of images that must be selected |
choice.max | number | Maximum number of images that can be selected |
choice.multipleSelection | boolean | Allow selecting more than one image |
choice.defaultValue | string[] | Pre-selected option IDs |
The fileId on each option corresponds to an entry in the form's formFiles array.
{
"_id": "6a0ef7283affac35058b067c",
"questionType": "choice",
"question": "Picture selection",
"displayOrder": 10,
"isRequired": false,
"isDeleted": false,
"isActive": false,
"description": "Picture selection helper text",
"choice": {
"subType": "picturechoice",
"min": 1,
"max": 2,
"options": [
{
"text": "Option 1",
"fileId": "aed9dd15-550e-11f1-bf67-0242ac120005",
"altText": "Pre-y",
"_id": "6a0ef7403affac35058b067d"
},
{
"text": "Option 2",
"fileId": "b0ff4da0-550e-11f1-bf67-0242ac120005",
"altText": "pro-y",
"_id": "6a0ef7443affac35058b067e"
}
],
"defaultValue": [],
"multipleSelection": true,
"_id": "6a0ef771a7a40272efec2ab9"
}
}