Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
0
Reply
Ms Bot Framework Dynamic Form FLow
Ekrem Tapan
Aug 24 2017 3:34 AM
244
Reply
I want to ask how can i dynamically control my form question on MS Bot Framework.
For example: Below i have my structure.
when execute my code then select
obj1
i want to jump
optionTwo
want to skip
optionOne
when i select
obj2
directly jump to
optionOne
and then skip to
optionTwo
public
SelectionOne selectionOne;
public
Option1 optionOne ;
public
Option2 optionTwo;
public
static
IForm<MyForm> BuildForm()
{
return
new
FormBuilder<MyForm>()
.Message(
"Welcome MyForm."
)
.OnCompletion(async (context, profileForm) =>
{
// Tell the user that the form is complete
await context.PostAsync(
"Thanks."
);
})
.Build();
}
}
[Serializable]
public
enum
SelectionOne
{
obj1=1,
obj2=2,
obj3=3,
obj4= 4,
obj5= 5,
obj6= 6
}
[Serializable]
public
enum
Option1
{
Type1 = 100,
Type2 = 150,
Type3 = 220
}
public
enum
Option2
{
Type1 = 100,
Type2 = 220
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
listing data in mvc
Using angular Text Editor with visual studio