A binary choice field with Yes and No options. Uses the choice object with subType set to "yesno".
| Field | Type | Description |
|---|---|---|
choice.subType | "yesno" | Binary yes/no selection |
choice.options | array | Two options (typically "Yes" and "No") |
choice.defaultValue | string[] | 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"
}
}