# Star rating

A visual rating field where respondents select a number of stars (or hearts, thumbs, etc.). Uses `choice.subType` set to `"rating"`.

## Schema

| Field | Type | Description |
|  --- | --- | --- |
| `choice.subType` | `"rating"` | Visual rating scale |
| `choice.options` | array | Rating points, each with `text` and `_id` |
| `choice.rateStyle` | string | Visual style (for example, `"star"`) |
| `choice.defaultValue` | string[] | Pre-selected option ID |


```json
{
  "_id": "6a0ef8363affac35058b06f7",
  "questionType": "choice",
  "question": "Star rating",
  "displayOrder": 5,
  "isRequired": false,
  "isDeleted": false,
  "isActive": false,
  "choice": {
    "subType": "rating",
    "other": false,
    "options": [
      { "text": "1", "_id": "6a0ef8363affac35058b06f2" },
      { "text": "2", "_id": "6a0ef8363affac35058b06f3" },
      { "text": "3", "_id": "6a0ef8363affac35058b06f4" },
      { "text": "4", "_id": "6a0ef8363affac35058b06f5" },
      { "text": "5", "_id": "6a0ef8363affac35058b06f6" }
    ],
    "defaultValue": [],
    "rateStyle": "star",
    "_id": "6a0ef88ba7a40272efec3c72"
  }
}
```