Skip to content

Error in Action code for SubmitAction #544

@TotallyInformation

Description

@TotallyInformation

On page https://learn.microsoft.com/en-gb/adaptive-cards/sdk/rendering-cards/javascript/actions, the example code fails if using the CDN version of AdaptiveCards in the browser.

image

This is because SubmitAction is not defined.

Either the example should be updated to ensure that SubmitAction is defined; or the if statement should be changed to:

if (action.constructor.name === 'SubmitAction') {

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions