---
agentTools:
  projectIndex: https://docs.xkit.co/llms.txt
---

# Settings Select Field

An object specifying a select field in an integration's configuration

[block:parameters]
{
  "data": {
    "h-0": "Attribute",
    "h-1": "Description",
    "h-2": "Example",
    "0-0": "**type**\n`\"select\" | \"select-multiple\"`",
    "0-1": "Marks this object as being a Settings Select Field. Use `select-multiple` if the user can choose multiple options.",
    "0-2": "`\"select\"`",
    "1-0": "**name**\n*string*",
    "1-1": "Name of this field, for use with your systems.",
    "2-0": "**label**\n*string* (optional)",
    "2-1": "Label for the field, visible to the end user. Defaults to the value of `name` if not set.",
    "4-0": "**value**\n`string | string[]` (optional)",
    "4-1": "If a `select`, this is the single selected value. If a `multiple-select`, an array of values. In either event, there should be an `option` corresponding to each value in this field.",
    "1-2": "`\"favorite_lyric\"`",
    "2-2": "`\"Favorite Lyric\"`",
    "4-2": "`[\"hello\", \"darkness\"]`",
    "5-0": "**description**\n*string* (optional)",
    "5-1": "Description of the field, displayed to the end user.",
    "5-2": "`\"The best lyric from the Simon & Garfunkel song.\"`",
    "6-0": "**placeholder**\n*string* (optional)",
    "6-1": "Placeholder in the input, displayed to the end user.",
    "6-2": "`\"Select one...\"`",
    "7-0": "**hint**\n*string* (optional)",
    "7-1": "Extra detail that may help the end user with this field.",
    "7-2": "`\"Listen to it before choosing!`",
    "8-0": "**validationMessage**\n*string* (optional)",
    "8-1": "An error message indicating that the user has filled in this field incorrectly.",
    "8-2": "`\"Choose at least one lyric.\"`",
    "3-0": "**options**\n`string[] | { value: string, label?: string }[]`",
    "3-1": "A list of options for the user to choose from. Either a list of strings, or a list of objects with `value` and `label` keys.",
    "3-2": "`[ { value: \"hello\", label: \"Hello\" }, { vaue: \"darkness\", label: \"Darkness\" } ]`"
  },
  "cols": 3,
  "rows": 9
}
[/block]