Skip to content

Latest commit

 

History

History
 
 

Bot.Builder.Community.Dialogs.FormFlow

Form Flow

Build status

Branch Status Recommended NuGet package version
master NuGet version

Description

This is part of the Bot Builder Community project which contains Bot Framework Components and other projects / packages for use with Bot Framework Composer and the Bot Builder .NET SDK v4.

This library is a netstandard2.0 port of Microsoft.Bot.Builder.FormFlow The Bot Builder V3 FormFlow documentation is useful for this library as well, just take note of the namespace changes.

Installation

Available via NuGet package Bot.Builder.Community.Dialogs.FormFlow

Install into your project using the following command in the package manager;

    PM> Install-Package Bot.Builder.Community.Dialogs.FormFlow

Sample

A sample for using FormFlow with the v4 SDK can be found here

Usage

FormDialog inherits from ComponentDialog

FormFlow dialogs can be added to a DialogSet:

_dialogs.Add(FormDialog.FromForm(SandwichOrder.BuildForm));

Or added to a component dialog:

public HotelsDialog() : base(nameof(HotelsDialog))
{
    var hotelsFormDialog = FormDialog.FromForm(this.BuildHotelsForm, FormOptions.PromptInStart);
    base.AddDialog(hotelsFormDialog);
}

References

Take note of namespace changes from Microsoft.Bot.Builder.FormFlow to Bot.Builder.Community.Dialogs.FormFlow

License

Licensed under the MIT License.