Closed IntranetFactory closed 8 years ago
For the first question, you can have a calling dialog that will receive the result of the IFormDialog
For the second question, that's an interesting idea - @chrimc62 ?
There is an OnCompletion method on the form builder that lets you define a delegate to be called when the form is complete. You can also compose together a chain of dialogs by using the methods off of Chain. Something like this:
Chain
.From(() => FormDialog.FromType
I'm afraid that I don't find the place where such a delegate should be added and how to get then the completed SandwichOrder. Would it be possible that you add such a delegate to the Microsoft.Bot.Sample.AnnotatedSandwichBot sample?
Add it to the end of your BuildForm, like this:
public static IForm
Thank you.
Please re-open if you're still having issues.
When the SandwichOrder Form is completed I'd like to store the order. I didn't find any code in the sample where I could add the logic to store the successfully completed order. I think storing the resulting form is essential for any bot.
I would also like to detect if the user quits the form and which steps of the form had been completed. This would allow to analyze the order process and where users abandon there order.