Action.Submit

Submit action gathers up input fields, merges with optional data field and generates event to client asking for data to be submitted. It is up to the client to determine how that 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
type "Action.Submit" Yes Must be Action.Submit
title string No Label for button or link that represents this action
data string,object No initial data that input fields will be combined with. This is essentially ‘hidden’ properties

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: "Action.Submit"
  • Required: Yes
  • Allowed values:
    • Action.Submit

title

Label for button or link that represents this action

  • Type: string
  • Required: No

data

initial data that input fields will be combined with. This is essentially 'hidden' properties

  • Type: string,object
  • Required: No