Schema Explorer

Input.Number

Allows a user to enter a number.

Property Type Required Description Version
id string Yes Unique identifier for the value. Used to identify collected input when the Submit action is performed. 1.0
max number No Hint of maximum value (may be ignored by some clients). 1.0
min number No Hint of minimum value (may be ignored by some clients). 1.0
placeholder string No Description of the input desired. Displayed when no selection has been made. 1.0
type "Input.Number" Yes Must be "Input.Number". 1.0
value number No Initial value for this field. 1.0
spacing string No Controls the amount of spacing between this element and the preceding element. 1.0
separator boolean No, default: false When true, draw a separating line at the top of the element. 1.0

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

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

  • 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

Description of the input desired. Displayed when no selection has been made.

  • Type: string
  • Required: No

type

Must be "Input.Number".

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

value

Initial value for this field.

  • Type: number
  • Required: No

spacing

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

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

separator

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

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