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) =>
- {
-
- 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
- }