Input.Number

Input.Number collects number 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 number No hint of maximum value (may be ignored by some clients)
min number No hint of minimum value (may be ignored by some clients)
placeholder string No Title Description of the input desired
type "Input.Number" No The type must be Input.Number
value number No The initial value for a field
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": "Input.Number",
            "id": "number",
            "placeholder": "Enter a number",
            "min": 1,
            "max": 10,
            "value": 3
        }
    ],
    "actions": [
        {
            "type": "Action.Submit",
            "title": "OK"
        }
    ]
}
{ "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.0", "body": [ { "type": "Input.Number", "id": "number", "placeholder": "Enter a number", "min": 1, "max": 10, "value": 3 } ], "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 (may be ignored by some clients)

  • Type: number
  • Required: No

min

hint of minimum value (may be ignored by some clients)

  • Type: number
  • Required: No

placeholder

Title Description of the input desired

  • Type: string
  • Required: No

type

The type must be Input.Number

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

value

The initial value for a field

  • Type: number
  • 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