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.
Nobody has claimed this yet.
- 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.
Screenshots
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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