SelectField

Subclass of UnitField

{
  "type": "select",
    "field_id": "sentiment",
  "title": "Sentiment",
  "description": "Choose a sentiment that best describes this text",
  "required": True,
  "choices_from_field": "Options",
}

Parameter

Type

Default

Description

choices

array

An array of selectable options, choices is not required if choices_from_field is present.

choices_from_field

string

Must be a valid field_id