Schema Explorer

Action.Submit

Gathers input fields, merges with optional data field, and sends an event to the client. It is up to the client to determine how this data is processed. For example: With BotFramework bots, the client would send an activity through the messaging medium to the bot.

Property Type Required Description Version
type string Yes Must be "Action.Submit". 1.0
title string No Label for button or link that represents this action. 1.0
iconUrl string No Optional icon to be shown on the action in conjunction with the title 1.1
data string,object No Initial data that input fields will be combined with. These are essentially ‘hidden’ properties. 1.0

Example

{
	"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
	"type": "AdaptiveCard",
	"version": "1.0",
	"body": [
		{
			"type": "TextBlock",
			"text": "Present a form and submit it back to the originator"
		},
		{
			"type": "Input.Text",
			"id": "firstName",
			"placeholder": "What is your first name?"
		},
		{
			"type": "Input.Text",
			"id": "lastName",
			"placeholder": "What is your last name?"
		}
	],
	"actions": [
		{
			"type": "Action.Submit",
			"title": "Action.Submit",
			"data": {
				"x": 13
			}
		}
	]
}
{ "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.0", "body": [ { "type": "TextBlock", "text": "Present a form and submit it back to the originator" }, { "type": "Input.Text", "id": "firstName", "placeholder": "What is your first name?" }, { "type": "Input.Text", "id": "lastName", "placeholder": "What is your last name?" } ], "actions": [ { "type": "Action.Submit", "title": "Action.Submit", "data": { "x": 13 } } ] }
Try it Yourself »

Properties

type

Must be "Action.Submit".

  • Type: string
  • Required: Yes

title

Label for button or link that represents this action.

  • Type: string
  • Required: No

iconUrl

Optional icon to be shown on the action in conjunction with the title

  • Type: string
  • Required: No
  • Format: uri

data

Initial data that input fields will be combined with. These are essentially 'hidden' properties.

  • Type: string,object
  • Required: No