Hiya I've came across this issue as well today, I've done a bit of testing as I found that the inputs sample worked for me. Not really understanding JSON at all, I think I know the root issue. Once I had paired down the Inputs sample in comparison to the other samples and when you create one from scratch there is a difference between the ActionsSets.
Working code from Inputs sample:
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"size": "Medium",
"weight": "Bolder",
"text": "Approve or not?",
"horizontalAlignment": "Center"
},
{
"type": "Input.ChoiceSet",
"id": "CompactSelectVal",
"value": "1",
"choices": [
{
"title": "Approve",
"value": "Approve"
},
{
"title": "Reject",
"value": "Reject"
}
],
"placeholder": "Select an Item"
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Submit",
"data": {
"id": "1234567890"
}
}
]
}
and the code that doesn't work from creating ones own submit button:
{
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"text": "To Approve or not??"
},
{
"type": "Input.ChoiceSet",
"placeholder": "Placeholder text",
"choices": [
{
"title": "Choice 1",
"value": "Choice 1"
},
{
"title": "Choice 2",
"value": "Choice 2"
}
]
},
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Submit",
"title": "Action.Submit",
"data": {
"id": "1234567890"
}
}
]
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0"
}
There must be something wrong with the composition of "type" : "Actionset" section I assume (haven't tried it yet), that if the code is formatted like the the fist section of code the Submit Action will work.
I'll do a bit more testing tomorrow but I believe that that is the reason why it doesn't work atm.