adaptive-cards

ContinueDialogAsync does not work when I use the input form of adaptive-cards in the waterfall dialog

℡╲_俬逩灬. 提交于 2019-12-02 04:21:33
I have been using the EchoBot Template and have recently used the VirtualAssistant Template. In the previous template, there was no problem in submitting the input form data, but this template does not work with ContinueDialogAsync just by submitting the input form data. How can we solve this? Please help me. input form of WaterfallStep card.Body.Add(new AdaptiveTextBlock() { HorizontalAlignment = AdaptiveHorizontalAlignment.Left, Spacing = AdaptiveSpacing.None, Size = AdaptiveTextSize.Small, Weight = AdaptiveTextWeight.Bolder, Color = AdaptiveTextColor.Accent, Text = Common.PurchaseDialog

MS Chat Bot --How to access custom adaptive card properties from my C# code

白昼怎懂夜的黑 提交于 2019-12-02 03:48:52
How to dynamically change my custom adaptive card's text property value from within my C# code? Here is my C# code public static Attachment CreateMySearchCardAttachment() { // combine path for cross platform support string[] paths = { ".", "Resources", "MySearchCard.json" }; var MySearchCardJson = File.ReadAllText(Path.Combine(paths)); var adaptiveCardAttachment = new Attachment() { ContentType = "application/vnd.microsoft.card.adaptive", Content = JsonConvert.DeserializeObject(MySearchCardJson), }; return adaptiveCardAttachment; } And my MySearchCard.json file goes below { "type":

'AdaptiveCard' does not contain a definition for 'FromJson'--Microsoft Bot Framework

我的梦境 提交于 2019-12-02 03:46:40
I have tried creating an adaptive card, parsing it from json. As mentioned in https://docs.microsoft.com/en-us/adaptive-cards/create/libraries/net#example-parse-from-json , I have installed AdaptiveCards package and tried using that function, but it throws a error like 'AdaptiveCard' does not contain a definition for 'FromJson'. As there is a Breaking changes from v0.5: Package renamed from Microsoft.AdaptiveCards to AdaptiveCards It seems that you have installed Microsoft.AdaptiveCards but AdaptiveCards . To install AdaptiveCards , please mark Include prerelease checkbox in NuGet package

Check if an input form is filled in, in a Adaptive Card

风流意气都作罢 提交于 2019-11-29 17:26:51
You can use input forms in an Adaptive card. But how can i check if the fields are filled in without going further to the next dialog. So after i clicked a submit button, it should check if the fields are filled in. Code: nodejs Example: http://adaptivecards.io/samples/InputForm.html You can validate the inputs and control the dialog water fulls in bot application. E.G. var bot = new builder.UniversalBot(connector, [(session,args,next) => { if (session.message && session.message.value) { // A Card's Submit Action obj was received if (processSubmitAction(session, session.message.value)) { next

Check if an input form is filled in, in a Adaptive Card

£可爱£侵袭症+ 提交于 2019-11-28 12:43:43
问题 You can use input forms in an Adaptive card. But how can i check if the fields are filled in without going further to the next dialog. So after i clicked a submit button, it should check if the fields are filled in. Code: nodejs Example: http://adaptivecards.io/samples/InputForm.html 回答1: You can validate the inputs and control the dialog water fulls in bot application. E.G. var bot = new builder.UniversalBot(connector, [(session,args,next) => { if (session.message && session.message.value) {