botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Web chat not showing the buttons in the herocard

Open somuit91 opened this issue 10 years ago • 2 comments

I am using herocard to get the user activity in callback, it is working fine in the emulator but after i publishied in the website it won't work. it simply display the content.

My code:

var replyMessage = context.MakeMessage();
                List<CardAction> cardButtons = new List<CardAction>();
                CardAction plButton = new CardAction()
                {
                    Value = "Reserve Book",  
                    Type = "imBack",
                    Title = "Reserve Book"
                };
                cardButtons.Add(plButton);

                HeroCard plCard = new HeroCard()
                {
                    Buttons = cardButtons
                };
                replyMessage.Attachments = new List<Attachment>();
                replyMessage.Attachments.Add(plCard.ToAttachment());
                await context.PostAsync(replyMessage);
                context.Wait(MessageReceivedAsync);

I have tried both imBack and postBack CardAction, it is working fine in the bot emulator but it is not working in the web chat

somuit91 avatar Oct 25 '16 11:10 somuit91

Hi somuit91. The current webchat control does not support buttons. We have a new webchat control in the works that will support a wide range of rich interaction, including buttons and carousels. This new webchat control will be released sometime in late November.

eanders-ms avatar Oct 25 '16 16:10 eanders-ms

Closing this issue, since it has been answered. @somuit91 feel free to reopen it if you need more info. Thanks!

Andrea-Orimoto avatar Oct 25 '16 21:10 Andrea-Orimoto