问题
Is it possible to set an adaptive card with date input in a waterfall dialog?(Using Bot Framework on Web and Teams).
What I need is user to select a date using adaptive cards Input.Date feature(Which is working everywhere except in Waterfall Dialogues) ie I need this adaptive card(which is already created as json in a local path) and return as context.PromptAsync() to next waterfall step.
Thanks, Gokul.
回答1:
it's possible.
you can design date-input card schema on https://adaptivecards.io/designer.
for more example using adaptive card csharp_dotnetcore/06.using-cards
回答2:
I'm only not flagging this as a duplicate due to the date-input part. K. Ch's answer is correct, although partial.
For retrieving input from Adaptive Cards in Waterfall Dialogs, see any of the previous times I've answered this
Specifically, handle submit actions in Waterfall Dialogs.
Other Resources
- Official Botframework blog post on Adaptive Cards
- AdaptiveCardPrompt. Auto-handles the Submit action and does a lot of other useful stuff. Might be integrated into the Botframework SDK someday. If you like it, show your support with a thumbs-up in that issue. You can still use the class, yourself, too.
- Search Kyle Delaney's Adaptive Card answers. He handles a lot of Adaptive Card questions, too.
- Adaptive Cards Templating - In Preview/Alpha, but allows you to create cards a little more dynamically within the card's JSON.
来源:https://stackoverflow.com/questions/58611984/is-it-possible-to-set-an-adaptive-card-with-date-input-in-a-waterfall-dialogus