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

# Settings Switch Field

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

A switch is a binary input, with a value of either `true` or `false`.

[block:parameters]
{
  "data": {
    "h-0": "Attribute",
    "h-1": "Description",
    "h-2": "Example",
    "0-0": "**type**\n`\"switch\"`",
    "0-1": "Marks this object as being a Settings Switch Field.",
    "0-2": "`\"switch\"`",
    "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.",
    "3-0": "**value**\n*boolean* (optional)",
    "3-1": "The value of the field. Defaults to `false`.",
    "1-2": "`\"enable_polling\"`",
    "2-2": "`\"Use Polling\"`",
    "3-2": "`true`",
    "4-0": "**description**\n*string* (optional)",
    "4-1": "Description of the field, displayed to the end user.",
    "4-2": "`\"Determines if we will poll Zendesk for updates.\"`",
    "5-0": "**hint**\n*string* (optional)",
    "5-1": "Extra detail that may help the end user with this field.",
    "5-2": "`\"Reach out to your customer success manager for details.\"`",
    "6-0": "**validationMessage**\n*string* (optional)",
    "6-1": "An error message indicating that the user has filled in this field incorrectly.",
    "6-2": "`\"You must enable polling to use this integration.\"`"
  },
  "cols": 3,
  "rows": 7
}
[/block]