Presents options in a dropdown menu. Supports an empty placeholder option.
| Field | Type | Description |
|---|---|---|
choice.subType | "dropdown" | Single-select dropdown |
choice.options | array | List of choices, each with text and _id |
choice.isShowEmptyoption | boolean | Show a blank first option |
choice.emptyOption | string | Label for the blank option (for example, "Please select") |
choice.defaultValue | string[] | Pre-selected option ID |
{
"_id": "6a0ef6f03affac35058b0649",
"questionType": "choice",
"question": "Drop down question",
"displayOrder": 9,
"isRequired": false,
"isDeleted": false,
"isActive": false,
"choice": {
"subType": "dropdown",
"isShowEmptyoption": true,
"emptyOption": "Please select",
"options": [
{ "text": "Option 1", "_id": "6a0ef6f03affac35058b0647" },
{ "text": "Option 2", "_id": "6a0ef6f03affac35058b0648" }
],
"defaultValue": [],
"_id": "6a0ef771a7a40272efec2ab5"
}
}