# Relevant Cardscript iconAction.ShowCard

Cardscript

Defines an AdaptiveCard which is shown to the user when the button or link is clicked.

# Example

{
  "type": "AdaptiveCard",
  "body": [],
  "actions": [
    {
      "type": "Action.ShowCard",
      "title": "Action.ShowCard",
      "card": {
        "type": "AdaptiveCard",
        "body": [
          {
            "type": "TextBlock",
            "text": "What do you think?"
          },
          {
            "id": "opinion",
            "type": "Input.Text",
            "spacing": "large",
            "default": "Amazing!"
          }
        ]
      }
    }
  ],
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.0"
}

# Required properties

# type

Must be "Action.ShowCard".

  • Type: string

# card

Root element in an Adaptive Card.

  • Type: object

# Optional properties

# title

Label for button or link that represents this action.

  • Type: string

# iconUrl

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


# JSON Schema

{
  "type": "Action.ShowCard",
  "additionalProperties": true,
  "description": "Defines an AdaptiveCard which is shown to the user when the button or link is clicked.",
  "properties": {
    "type": {
      "type": "string",
      "description": "Must be `\"Action.ShowCard\"`."
    },
    "title": {
      "type": "string",
      "description": "Label for button or link that represents this action."
    },
    "iconUrl": {
      "type": "string",
      "format": "uri",
      "description": "Optional icon to be shown on the action in conjunction with the title",
      "version": "1.1"
    },
    "card": {
      "$ref": "#/definitions/AdaptiveCard"
    }
  },
  "required": [
    "type",
    "card"
  ],
  "typeSafe": "action-show-card",
  "example": "FIXME!",
  "propertySummary": [
    {
      "name": "type",
      "type": "string",
      "required": "Required",
      "text": "Must be `\"Action.ShowCard\"`."
    },
    {
      "name": "title",
      "type": "string",
      "required": "Optional",
      "text": "Label for button or link that represents this action."
    },
    {
      "name": "iconUrl",
      "type": "string",
      "required": "Optional",
      "text": "Optional icon to be shown on the action in conjunction with the title"
    },
    {
      "name": "card",
      "required": "Required"
    }
  ]
}
Last Updated: 9/10/2023, 11:30:14 AM