Skip to content

Star rating

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

Schema

FieldTypeDescription
choice.subType"rating"Visual rating scale
choice.optionsarrayRating points, each with text and _id
choice.rateStylestringVisual style (for example, "star")
choice.defaultValuestring[]Pre-selected option ID
{
  "_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"
  }
}