Action.ShowCard

Action.ShowCard defines an inline AdaptiveCard which is shown to the user when it is clicked.

Property Type Required Description
type "Action.ShowCard" Yes Must be Action.ShowCard
title string No Label for button or link that represents this action
card object Yes Card schema for an adaptive card

Example

{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.0",
    "body": [
        {
            "type": "TextBlock",
            "text": "This card's action will show another card"
        }
    ],
    "actions": [
        {
            "type": "Action.ShowCard",
            "title": "Action.ShowCard",
            "card": {
                "type": "AdaptiveCard",
                "body": [
                    {
                        "type": "TextBlock",
                        "text":"What do you think?"
                    }
                ],
                "actions": [
                    {
                        "type":"Action.Submit",
                        "title":"Neat!"
                    }
                ]
            }
        }
    ]
}
{ "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.0", "body": [ { "type": "TextBlock", "text": "This card's action will show another card" } ], "actions": [ { "type": "Action.ShowCard", "title": "Action.ShowCard", "card": { "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "text":"What do you think?" } ], "actions": [ { "type":"Action.Submit", "title":"Neat!" } ] } } ] }
Try it Yourself ยป

Properties

type

Must be Action.ShowCard

  • Type: "Action.ShowCard"
  • Required: Yes
  • Allowed values:
    • Action.ShowCard

title

Label for button or link that represents this action

  • Type: string
  • Required: No

card

Card schema for an adaptive card

  • Type: object
  • Required: Yes