# Relevant Cardscript iconAction.ReplaceCard

Cardscript

When invoked this will replace the current entry in the history with the new route.

# Example

{
  "type": "AdaptiveCard",
  "body": [],
  "actions": [
    {
      "type": "Action.ReplaceCard",
      "title": "Action.ReplaceCard",
      "stateMachineName": "pizza_amendOrder_1_0"
    }
  ],
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.0"
}

# Required properties

# type

Must be "Action.ReplaceCard".

  • Type: string

# stateMachineName

The state machine to launch.

  • Type: string

# Optional properties

# title

Label for button or link that represents this action.

  • Type: string

# input

The input to launch with.

  • Type: object

# JSON Schema

{
  "additionalProperties": true,
  "description": "When invoked this will replace the current entry in the history with the new route.",
  "properties": {
    "type": {
      "type": "string",
      "description": "Must be `\"Action.ReplaceCard\"`."
    },
    "title": {
      "type": "string",
      "description": "Label for button or link that represents this action."
    },
    "stateMachineName": {
      "type": "string",
      "description": "The state machine to launch."
    },
    "input": {
      "type": "object",
      "description": "The input to launch with."
    }
  },
  "required": [
    "type",
    "stateMachineName"
  ],
  "type": "Action.ReplaceCard",
  "typeSafe": "action-replace-card",
  "example": "FIXME!",
  "propertySummary": [
    {
      "name": "type",
      "type": "string",
      "required": "Required",
      "text": "Must be `\"Action.ReplaceCard\"`."
    },
    {
      "name": "title",
      "type": "string",
      "required": "Optional",
      "text": "Label for button or link that represents this action."
    },
    {
      "name": "stateMachineName",
      "type": "string",
      "required": "Required",
      "text": "The state machine to launch."
    },
    {
      "name": "input",
      "type": "object",
      "required": "Optional",
      "text": "The input to launch with."
    }
  ]
}
Last Updated: 9/10/2023, 11:30:14 AM