TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ekrem Tapan
NA
967
81.7k
Ms Bot Framework Dynamic Form FLow
Aug 24 2017 3:34 AM
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
}
Reply
Answers (
0
)
How many Document return in WEB API ??
Using angular Text Editor with visual studio