I’m using "microsoft bot builder" library to build a bot in c#.
I have a card that contains an AdaptiveSubmitAction button which will present a new card on click.
I want to prevent a new card from being displayed if the user double clicks on the "Submit" button.. how would that be possible?
This is a part of my code:
////// Submit and Finish button /////// card.Body.Add(new AdaptiveColumnSet() { Columns = new List<AdaptiveColumn>() { new AdaptiveColumn() { Width = "auto", Items = new List<AdaptiveElement>() { new AdaptiveActionSet() { Actions = new List<AdaptiveAction>() { new AdaptiveSubmitAction() { Title = "Submit", Id = "Submit", //from the data you can trigger actions //e.g.: Data = new {isDone = false, deleteCrit = false} }, } } } }, new AdaptiveColumn() { Width = "auto", Items = new List<AdaptiveElement>() { new AdaptiveActionSet() { Actions = new List<AdaptiveAction>() { new AdaptiveSubmitAction() { Title = "End", Id = "Finished", Data = new {isDone = true, deleteCrit = false} } } } } }, } });
Any help is appreciated!