Action.Submit not returning a value
See original GitHub issueHey, I think I may have found a bug… I am using Node.js and running this code in the BotFramework Emulator. Upon pressing the SUBMIT button, my response.value is {} instead of the desired input. This was presented here as well but in C#: https://stackoverflow.com/questions/44388731/how-can-i-read-the-value-from-complex-adaptive-card
How can I grab the message.value that should contain my input field responses!
attachments: [
{
contentType: 'application/vnd.microsoft.card.adaptive',
content: {
type: 'AdaptiveCard',
body: [
{
type: 'ColumnSet',
columns: [
{
type: 'Column',
size: 2,
items: [
{
type: 'TextBlock',
text: 'Log your work!',
weight: 'bolder',
size: 'large'
},
{
type: 'TextBlock',
text: 'Select from Recent Issues',
isSubtle: true
},
{
type: 'Input.ChoiceSet',
id: 'issue_selection',
style: "compact",
choices: [
{
title: "Select one",
value: "selected",
isSelected: true
},
{}
]
},
{
type: 'TextBlock',
text: 'How much time did you spend on this? (ex. 1h 30m)?',
isSubtle: true,
wrap: true
},
{
type: 'Input.ChoiceSet',
id: 'time_spent',
style: 'compact',
choices: [
{
title: '0h',
value: '0h',
},
{
title: '1h',
value: '1h',
},
{
title: '2h',
value: '2h',
},
{
title: '3h',
value: '3h',
}]
},
{
type: 'TextBlock',
text: 'Something Here',
wrap: true,
isSubtle: true
},
{
type: 'Input.Text',
id: 'work_description',
}]
}
actions: [
{
type: 'Action.Submit',
title: 'Log this work',
// data: JSON.stringify({selected: selected.value,
// work_description: work_description.value,
// time_spent: time_spent.value,
// })
}]
}
}
]
}```
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
View values not returned to the controller action
1. Keep the helpers inside the Form like below. @using (Html.BeginForm("ActionName", "ControllerName", FormMethod.
Read more >Solved: Flow Designer Action not returning Output value to...
Hi,. I created custom flow designer Action which will accept user sysId as Input and finds the sysId of VP user record and...
Read more >What HTTP action and return value should be used on ...
My recommendation would be to stick with POST, since POST isn't only for creating new resources. From RFC 7231: (emphasis mine).
Read more >Why isn't Action.Execute including Input Values when ...
In a Team Channel, I receive someText with the Action.Submit action, but not with the Action.Execute button. Action.Execute was working a ...
Read more >submit event | jQuery API Documentation
The submit event is sent to an element when the user is attempting to submit a form. It can only be attached to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am on it. ☺
I consulted this https://stackoverflow.com/questions/44388731/how-can-i-read-the-value-from-complex-adaptive-card and one of the comments suggested that this is an issue with columns within adaptive cards. I changed my form to not include columns and it worked! Thanks for the help!