Skip to content

Presents options in a dropdown menu. Supports an empty placeholder option.

Schema

FieldTypeDescription
choice.subType"dropdown"Single-select dropdown
choice.optionsarrayList of choices, each with text and _id
choice.isShowEmptyoptionbooleanShow a blank first option
choice.emptyOptionstringLabel for the blank option (for example, "Please select")
choice.defaultValuestring[]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"
  }
}