microsoft / microsoft/AdaptiveCards

[Rendering] Adaptive Cards - Action.Submit with data value as a string instead of object not triggering the webhook when on web app.

Open
#8,000 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Renderers Bug
Dominant language
C#
Stars
2k
Forks
595
Avg merge
1d 19h
Merged PRs (30d)
1

Description

Target Platforms

NodeJS

SDK Version

2.9.0

Application Name

Cisco Webex Teams (Web Client)

Problem Description

Action.Submit with data value as a string instead of an object not triggering the webhook when on the web app instead of this it is throwing the error when clicking on Add button.

When the user clicks on Add button (attached Screenshot) the Adaptive Card JavaScript SDK throws the error as shown in the attached Screenshots.

Screenshot 2022-10-31 at 16 42 06 Screenshot 2022-10-31 at 16 38 54
Screenshots
Screenshot 2022-10-31 at 16 36 00
Card JSON
{
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "type": "AdaptiveCard",
  "version": "1.0",
  "body": [
    {
      "type": "ColumnSet",
      "columns": [
        {
          "type": "Column",
          "width": 2,
          "items": [
            {
              "type": "TextBlock",
              "text": "Add Delegate Users",
              "weight": "Bolder"
            },
            {
              "type": "Input.Text",
              "id": "email1"
            },
            {
              "type": "Input.Text",
              "id": "email2"
            },
            {
              "type": "Input.Text",
              "id": "email3"
            },
            {
              "type": "Input.Text",
              "id": "email4"
            }
          ]
        }
      ]
    }
  ],
  "actions": [
    {
      "type": "Action.Submit",
      "title": "Add",
      "data": "add"
    }
  ]
}
Sample Code Language

JavaScript

Sample Code

Below is the JSON of the Card that is being rendered.

{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": 2,
"items": [
{
"type": "TextBlock",
"text": "Add Delegate Users",
"weight": "Bolder"
},
{
"type": "Input.Text",
"id": "email1"
},
{
"type": "Input.Text",
"id": "email2"
},
{
"type": "Input.Text",
"id": "email3"
},
{
"type": "Input.Text",
"id": "email4"
}
]
}
]
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Add",
"data": "add"
}
]
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the JavaScript SDK rendering behavior with the provided Adaptive Card JSON, focusing on Action.Submit when data is the string "add". Done means clicking Add triggers the webhook on the web app without throwing the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.