MicrosoftDocs / AdaptiveCards

Docs for Adaptive Cards
https://docs.microsoft.com/en-us/adaptive-cards/
Creative Commons Attribution 4.0 International
72 stars 138 forks source link

Disable/Hide Adaptive cards after a single use #429

Open poojarkpatel opened 2 years ago

poojarkpatel commented 2 years ago

We are building chatbot leveraging Bot Framework Composer(C# bot). We created a react-app and integrated bot into it with the help of a DirectLine token. Our requirement is to disable the card/action button from WebChat after the adaptive card is rendered, so the user cannot click on the action button again. Is there a way to disable or hide the adaptive card after a single use?

johnmiroki commented 2 years ago

@poojarkpatel how did you solve this? Updating the card with another one with disabled button?