Skip to content

A binary choice field with Yes and No options. Uses the choice object with subType set to "yesno".

Schema

FieldTypeDescription
choice.subType"yesno"Binary yes/no selection
choice.optionsarrayTwo options (typically "Yes" and "No")
choice.defaultValuestring[]Pre-selected option ID
{
  "_id": "6a0ef6e43affac35058b0638",
  "questionType": "choice",
  "question": "Yes no",
  "displayOrder": 8,
  "isRequired": false,
  "isDeleted": false,
  "isActive": false,
  "choice": {
    "subType": "yesno",
    "options": [
      { "text": "Yes", "_id": "6a0ef6e43affac35058b0636" },
      { "text": "No", "_id": "6a0ef6e43affac35058b0637" }
    ],
    "defaultValue": [],
    "_id": "6a0ef771a7a40272efec2ab1"
  }
}