# Relevant Cardscript iconInput.Time

Cardscript

Lets a user select a time.

# Example

{
  "type": "AdaptiveCard",
  "body": [
    {
      "id": "time",
      "type": "Input.Time",
      "placeholder": "Input.Time",
      "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.Time".

  • Type: string
  • Values:
    • Input.Time

# Optional properties

# max

Hint of maximum value (may be ignored by some clients).

  • Type: string

# min

Hint of minimum value (may be ignored by some clients).

  • Type: string

# placeholder

Description of the input desired. Displayed when no time has been selected.

  • Type: string

# value

The initial value for this field expressed in ISO-8601 format.

  • 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.Time",
  "description": "Lets a user select a time.",
  "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."
    },
    "max": {
      "type": "string",
      "description": "Hint of maximum value (may be ignored by some clients)."
    },
    "min": {
      "type": "string",
      "description": "Hint of minimum value (may be ignored by some clients)."
    },
    "placeholder": {
      "type": "string",
      "description": "Description of the input desired. Displayed when no time has been selected."
    },
    "type": {
      "type": "string",
      "description": "Must be `\"Input.Time\"`.",
      "enum": [
        "Input.Time"
      ]
    },
    "value": {
      "type": "string",
      "description": "The initial value for this field expressed in ISO-8601 format."
    }
  },
  "required": [
    "type",
    "id"
  ],
  "typeSafe": "input-time",
  "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": "max",
      "type": "string",
      "required": "Optional",
      "text": "Hint of maximum value (may be ignored by some clients)."
    },
    {
      "name": "min",
      "type": "string",
      "required": "Optional",
      "text": "Hint of minimum value (may be ignored by some clients)."
    },
    {
      "name": "placeholder",
      "type": "string",
      "required": "Optional",
      "text": "Description of the input desired. Displayed when no time has been selected."
    },
    {
      "name": "type",
      "type": "string",
      "required": "Required",
      "text": "Must be `\"Input.Time\"`."
    },
    {
      "name": "value",
      "type": "string",
      "required": "Optional",
      "text": "The initial value for this field expressed in ISO-8601 format."
    }
  ]
}
Last Updated: 9/10/2023, 11:30:14 AM