microsoft / AdaptiveCards

A new way for developers to exchange card content in a common and consistent way.
https://adaptivecards.io
MIT License
1.71k stars 542 forks source link

[How to trigger Javascript functions on Actions?] #8843

Open burhanshah opened 4 months ago

burhanshah commented 4 months ago

Hi,

I just want to know how we can trigger functions on events like when a user clicks Submit button on Adaptive card? I didn't find any good resources where this is explained.

Basically, I want to hide the Adaptive card entirely or all of it's fields once a user hit submit button. Please can anyone guide on how to implement that?

anna-dingler commented 2 weeks ago

Hi @burhanshah,

This documentation should be what you are looking for: https://learn.microsoft.com/en-us/adaptive-cards/sdk/rendering-cards/javascript/actions