Is it possible to set an adaptive card with date input in a waterfall dialog?(Using Bot Framework on Web and Teams)

白昼怎懂夜的黑 提交于 2020-01-25 08:57:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!