Forum Discussion
How to handle action submit in Bot
We will investigate this issue and get back to you.
- Sayali-MSFTNov 28, 2022
Microsoft
lvoouiilliot - Please have look into this sample-
https://github.com/microsoft/BotBuilder-Samples/tree/main/samples/javascript_nodejs/54.teams-task-module- lvoouiilliotNov 28, 2022Copper ContributorIt is a submit on a Task, in my case it is an adaptative Card, it is not the same Handle method
- Sayali-MSFTNov 29, 2022
Microsoft
lvoouiilliot -If you look at Action.Submit in the schema, you will see that a submit action’s data property can be either a string or an object. When using the Bot Framework, clicking on a submit action will send a Bot Framework message activity to the bot. A string submit action will simply transfer its string data into the activity’s text property. An object submit action has a somewhat more complicated process of populating the activity’s value property while leaving the text property empty. Each input field in the object submit action’s card will be represented as a property of that value object and the properties will be named according to each input field’s ID. Any properties already in the object submit action’s data property will also be present in the value object.
Reference document - Using Adaptive Cards with the Microsoft Bot Framework - Microsoft Bot Framework
Also look into this sample-Microsoft-Teams-Samples/teamsBot.js at main · OfficeDev/Microsoft-Teams-Samples (github.com)