Apr 10 2020 12:01 AM - edited Apr 10 2020 12:18 AM
Hi, We have a bot that is showing users adaptive cards. The cards are built with submit action buttons. We have noticed that when users click on the submit buttons, the bot and its web app may take time to respond. During this "waiting period", users would click on the buttons again, resulting in duplicate actions being performed.
Is there a way to give an indicator to the users that the button has been clicked and an action is performing in the background? For eg. disable the button after it's been clicked?
Thank You
Apr 10 2020 01:25 AM
Solution@voonsionglum Does your Button event click is executing the POST call. If not then request you to perform HTTP POST request. This would disable the button. I have performed this in Message card and it works fine for me. I mean, it disables my button until the response received back from the server.
Apr 10 2020 01:39 AM
Kudos! I did not know there was another action type called Action.HTTP. From http://www.msclouddeveloper.com/adaptive-card-with-http-post/, it looks like we might be able to handle latency better.
Thank You!
Apr 10 2020 01:25 AM
Solution@voonsionglum Does your Button event click is executing the POST call. If not then request you to perform HTTP POST request. This would disable the button. I have performed this in Message card and it works fine for me. I mean, it disables my button until the response received back from the server.