Bot: Select any leave type? LeaveQueryRequest.LeaveType
User: Annual leave
Bot: would you like to give the reason for applying annual leave? LeaveQueryRequest.isComment
Here annual leave is what user selected as leave type. So, for isComment prompt/description value is based on user input.
.Field(new FieldReflector<LeaveRequestQuery>(nameof(LeaveRequestQuery.isComment))
.SetFieldDescription($"Would you like to give comments/reasons for taking {LeaveType} ")
.SetNext((value, state) =>
{
am trying to set dynamic prompt/description for the form fields based on the previous input for the form. Like already user has chosen leave type, from date and to date. So, those values should prompt in next questions.