I have the following attributes for a form flow case:
public enum Offices{}
[Describe("Country")]
public string Country;
[Prompt("Which office are you working in?{||}")]
public Offices Office;
I want to populate the offices according to the specified country. For example if the user enters India as a Country field, I want the offices to be Mumbai, New Delhi and Pune. If the user enters UAE, I want the offices to be Dubai and Abou Dhabi, etc...
How can I achieve this?
This is a similar questions to "How to use enum category and subcategory in bot framework C#?" at least in how to do what you need.
Using FormBuilder you can dynamically define your form. Full docs on FormBuilder are here.
Recapping the previous StackOverlfow answer, you use a FieldReflector and that will allow you to setup an async delegate. In that delegate, you would build the list of Cities based on the state.Country value. It will look something like this: