Input.Date

Input.Date collects Date from the user,

Property Type Required Description
id string Yes Id for the value (will be used to identify collected input when SUBMIT is clicked)
max string No hint of maximum value expressed in ISO-8601 format (may be ignored by some clients)
min string No hint of minimum value expressed in ISO-8601 format (may be ignored by some clients)
placeholder string No Title Description of the input desired
type "Input.Date" No The type must be Input.Date
value string No The initial value for a field expressed in ISO-8601 format
spacing string No Controls the amount of spacing between this element and the previous element.
separator boolean No, default: false The Separator object type describes the look and feel of a separation line between two elements.

Example

{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.0",
    "body": [
        {
            "type": "TextBlock",
            "text": "Date Input"
        },
        {
            "type": "Input.Date",
            "id": "date",
            "placeholder": "Enter a date",
            "value": "2017-10-12"
        }
    ],
    "actions": [
        {
            "type": "Action.Submit",
            "title": "OK"
        }
    ]
}
{ "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.0", "body": [ { "type": "TextBlock", "text": "Date Input" }, { "type": "Input.Date", "id": "date", "placeholder": "Enter a date", "value": "2017-10-12" } ], "actions": [ { "type": "Action.Submit", "title": "OK" } ] }
Try it Yourself ยป

Properties

id

Id for the value (will be used to identify collected input when SUBMIT is clicked)

  • Type: string
  • Required: Yes

max

hint of maximum value expressed in ISO-8601 format (may be ignored by some clients)

  • Type: string
  • Required: No

min

hint of minimum value expressed in ISO-8601 format (may be ignored by some clients)

  • Type: string
  • Required: No

placeholder

Title Description of the input desired

  • Type: string
  • Required: No

type

The type must be Input.Date

  • Type: "Input.Date"
  • Required: No
  • Allowed values:
    • Input.Date

value

The initial value for a field expressed in ISO-8601 format

  • Type: string
  • Required: No

spacing

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

  • Type: string
  • Required: No
  • Allowed values:
    • "none"
    • "small"
    • "default"
    • "medium"
    • "large"
    • "extraLarge"
    • "padding"

separator

The Separator object type describes the look and feel of a separation line between two elements.

  • Type: boolean
  • Required: No, default: false