Lubomir
Lubomir

Reputation: 91

Hero Card Buttons PostBack

I am making use of Hero Cards in Bot Framework v4. I do not want to show any value whenever a button from a Hero Card is clicked. Because of that, the type of the CardAction is set to PostBack. Unfortunately, the first time a button is clicked in a chat the value is shown in the form. If I click the same button again it is not showing any value anymore.

Let me know how to disable showing it the first time.

Code of the button of the Hero Card:

CardAction plButton = new CardAction()
{
   Title = "Connect to Employee",
   Value = "Connect",
   Type = ActionTypes.PostBack
};

Upvotes: 1

Views: 527

Answers (1)

Mark S.
Mark S.

Reputation: 301

Are you using the BotFramework Emulator? This was a bug that has now been fixed in the latest version of the emulator. An update should fix it.

Upvotes: 2

Related Questions