Closed NxP4Code closed 4 years ago
The mechanism to include the card submission in a dialog is to use a middleware to change the activity type from Event to Message as it is being processed.
However, there is not currently a way to access the additional payload present in this event inside the ask handler function. This will change when #1801 is merged.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
It depends on when #1801 is merged.
I am trying to use Adaptive Cards in Dialog and use fallback text for the non-supported WebEx Teams clients so that users can respond in the text format as well.
something like this, if the client supports card user will see a proper card and will be able to hit the submit button which sends attachmentActions to the webhook with an object. My test card is simple it has one drop down with 3 options and one submit button.
If client doesn't support AdaptiveCards, the user can respond in text and we continue the dialog with a text response.
The problem is 2 fold.
It seems, continueDialog function in prompts.ts file has condition which is stopping it form processing any non-message events.
if controller.on works, maybe somehow I can hanle response in controller.on and complete my convo from controller.on when user respond with card submit.
Any alternative or fix to this?