DCR: patch Message Text for submitted Adaptive Cards #5293
Labels
backlog
The issue is out of scope for the current iteration but it will be evaluated in a future release.
BF Customer Ask
"Convenience" asks made by our customers and don’t accrue to any major feature
Projects
Issue
When an AdaptiveCard is submitted via the
Submit.Action
button, the bot receives anmessage
activity with an emptytext
field and avalue
field containing a JSON object with the submitted input field values. The issue is there's no built in way of knowing what button was clicked or what form is being submitted. Developers currently need to add a hidden field to theSubmit.Action
which they can then use to route the received form data.Proposed change
We can provide a more general solution to this problem if we update the
BotFrameworkAdapter
class to detect an incoming AdaptiveCard form (missing text and JSON object in the value field) and then look for a special "message.text" field, in the values JSON object, which we then promote to being thetext
of the received activity. This will make theSubmit.Action
behave more like animBack
orpostBack
card action which can be easily routed within the bot.Component Impact
Just the
BotFrameworkAdapter
class.Tracking Status
Dotnet SDK
Javascript SDK
Java SDK
Python SDK
Emulator
Samples
Docs
Tools
[dcr]
The text was updated successfully, but these errors were encountered: