Skip to content

Choice Item Schema

Choice items are used in choices, rows, and columns arrays for choice-based questions and matrix questions.

Use this object shape when a choice needs a display label, image, conditional visibility, or other metadata. For simple choices, a string is also valid.

["Sales", "Support", "Operations"]
[
{ "value": "sales", "text": "Sales" },
{ "value": "support", "text": "Support" }
]
  • Type: string | number | boolean
  • Required: Yes for object choices

The stored answer value. Keep values stable and machine-friendly, for example "sales" instead of "Sales Team".

  • Type: string
  • Localizable: Yes

The label shown to respondents. If omitted, Formspace displays the value.

  • Type: condition

Boolean expression that controls whether this choice is visible.

  • Type: condition

Boolean expression that controls whether this choice is selectable.

  • Type: string

Image URL used by image picker choices.

  • Type: string

Additional text shown with the choice where supported.

{
"type": "radiogroup",
"name": "department",
"title": "Which department should handle this?",
"choices": [
{ "value": "sales", "text": "Sales" },
{ "value": "support", "text": "Support" },
{ "value": "other", "text": "Other", "visibleIf": "{companySize} > 50" }
]
}