Skip to content

[Back to Parameters]

Dropdown

A widget that allows a user to select a single item from a dropdown menu, or optionally input a string. Value can be saved as a string, number, or bool.

ℹ The choiceSettings object described in the Parameters page is required for defining an instance of this parameter.

ℹ To add a separator between items, add a choice item with a value of -----.

Example

{
  "name": "somedropdown",
  "type": "dropdown",
  "valueType": "string",
  "prompt": "Geometry Type",
  "defaultValue": "poly",
  "choiceSettings": {
    "choices": [
      {
        "value": "poly",
        "display": "polygon"
      },
      {
        "value": "point",
        "display": "point"
      },
      {
        "value": "line",
        "display": "line"
      }
    ]
  }
}