# Relevant Cardscript iconInput.TelephoneNumber

Cardscript

Lets a user enter a telephone number.

# Example

{
  "type": "AdaptiveCard",
  "body": [
    {
      "id": "inputTelephoneNumber",
      "type": "Input.TelephoneNumber",
      "placeholder": "Input.TelephoneNumber",
      "spacing": "medium"
    }
  ],
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.0"
}

# Required properties

# id

Unique identifier for the value. Used to identify collected input when the Submit action is performed.

  • Type: string

# type

Must be "Input.TelephoneNumber".

  • Type: string
  • Values:
    • Input.TelephoneNumber

# Optional properties

# connectionType

What type of phone is this number related to?.

  • Type: string
  • Values:
    • mobile
    • landline

# icon

Name of an icon to prefix telephone-number input with.

  • Type: string

# spacing

Controls the amount of spacing between this element and the preceding element.

  • Type: string
  • Values:
    • none
    • small
    • default
    • medium
    • large
    • extraLarge
    • padding

# separator

When true, draw a separating line at the top of the element.

  • Type: boolean

# JSON Schema

{
  "additionalProperties": true,
  "type": "Input.TelephoneNumber",
  "description": "Lets a user enter a telephone number.",
  "allOf": [
    {
      "$ref": "#/definitions/CardElement"
    }
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the value. Used to identify collected input when the Submit action is performed."
    },
    "type": {
      "type": "string",
      "description": "Must be `\"Input.TelephoneNumber\"`.",
      "enum": [
        "Input.TelephoneNumber"
      ]
    },
    "connectionType": {
      "type": "string",
      "description": "What type of phone is this number related to?.",
      "enum": [
        "mobile",
        "landline"
      ]
    },
    "icon": {
      "type": "string",
      "description": "Name of an icon to prefix telephone-number input with."
    }
  },
  "required": [
    "type",
    "id"
  ],
  "typeSafe": "input-telephone-number",
  "example": "FIXME!",
  "propertySummary": [
    {
      "name": "id",
      "type": "string",
      "required": "Required",
      "text": "Unique identifier for the value. Used to identify collected input when the Submit action is performed."
    },
    {
      "name": "type",
      "type": "string",
      "required": "Required",
      "text": "Must be `\"Input.TelephoneNumber\"`."
    },
    {
      "name": "connectionType",
      "type": "string",
      "required": "Optional",
      "text": "What type of phone is this number related to?."
    },
    {
      "name": "icon",
      "type": "string",
      "required": "Optional",
      "text": "Name of an icon to prefix telephone-number input with."
    }
  ]
}
Last Updated: 9/10/2023, 11:30:14 AM