Skip to content

Select (Dropdown)

Configure a dropdown select field in Potato for single-choice annotation over long option lists, with optional required answers and shuffled option order.

The select type provides a dropdown menu for single selection. Best for longer lists of options (5+) where radio buttons would be visually overwhelming.

Potato dropdown select interface for choosing a document category from a menuSelect dropdown in Potato

Basic Configuration

yaml
annotation_schemes:
  - name: "category"
    description: "Select the document category"
    annotation_type: "select"
    labels:
      - "news"
      - "opinion"
      - "tutorial"
      - "review"
      - "other"

Configuration Options

FieldTypeRequiredDescription
namestringYesUnique identifier for the annotation
descriptionstringYesInstructions shown to annotators
annotation_typestringYesMust be "select"
labelsarray or stringYes, unless use_predefined_labels is setList of options to choose from, or the path of a text file with one option per line
use_predefined_labelsstringNoA built-in list: "country", "ethnicity" or "religion"
requiredbooleanNoWhether selection is required
randomize_orderbooleanNoShuffle the options for each annotator and item. A built-in list keeps its own order

Every dropdown opens on a blank -- select one -- entry. Potato reads no default key for a select scheme.

Examples

Document Classification

yaml
- name: "document_type"
  description: "What type of document is this?"
  annotation_type: "select"
  labels:
    - "Research Paper"
    - "News Article"
    - "Blog Post"
    - "Technical Documentation"
    - "Legal Document"
    - "Marketing Material"
    - "Personal Communication"
    - "Other"

Language Selection

yaml
- name: "language"
  description: "What language is this text written in?"
  annotation_type: "select"
  labels:
    - "English"
    - "Spanish"
    - "French"
    - "German"
    - "Chinese"
    - "Japanese"
    - "Other"
  required: true

Randomized Option Order

yaml
- name: "genre"
  description: "Select the genre of this text"
  annotation_type: "select"
  labels:
    - "Fiction"
    - "Non-fiction"
    - "Poetry"
    - "Drama"
  randomize_order: true

Options From a Text File

A long list can live in a file, one option per line:

yaml
- name: "language"
  description: "Which language is this text in?"
  annotation_type: "select"
  labels: "options/languages.txt"

The path is relative to task_dir, then to the config file's directory, and has to stay inside task_dir. Blank lines are skipped. Potato refuses an empty file and a file that lists an option twice. The file is read when the server starts, so an edit to it takes a restart. Survey phase files accept the same form.

Built-in Lists

yaml
- name: "country"
  description: "Which country do you live in?"
  annotation_type: "select"
  use_predefined_labels: "country"

A scheme with use_predefined_labels needs no labels. With labels set as well, the page shows the built-in list and the server log warns that labels is ignored. A name other than country, ethnicity or religion stops the server at startup.

Output Format

A select answer is stored under the label name select-one, with the chosen option as its value:

json
{
  "instance_id": "item_1",
  "user_id": "annotator1",
  "labels": {
    "category": {
      "select-one": "tutorial"
    }
  },
  "spans": {},
  "links": {}
}

When to Use Select vs Radio

Use SelectUse Radio
5+ options2-5 options
Options are well-known to annotatorsNeed to see all options at once
Space is limitedKeyboard shortcuts are important
Long option labelsQuick visual scanning needed

Best Practices

  1. Order options logically - Alphabetically, by frequency, or by semantic grouping
  2. Include "Other" option - When the list might not be exhaustive
  3. Use clear, distinct labels - Avoid ambiguous or overlapping categories
  4. Set required: true when every item needs an answer - Every dropdown opens on a blank entry, and an annotator can leave the entry blank unless the scheme is required