botframework-sdk
botframework-sdk copied to clipboard
FormFlow and multi-word field's term issues
Reproduce the issues:
- Create a form with two fields:
[Serializable]
public class TestForm
{
public string First { get; set; }
public string SecondField { get; set; }
}
- Build a FormDialog:
new FormBuilder<TestForm>()
.Field(nameof(TestForm.First))
.Field(nameof(TestForm.SecondField))
.Confirm("Confirm?")
.Build();
- Run the dialog, fill up form fields (First and SecondField) and answer with "no" to the confirmation "Confirm?".
Issues
- If you respond to "What do you want to change?" by clicking the button for the Second Field you will receive "SecondField" is not a field name option.
- Select Second Field by responding with "Second" or "Field"
- if you enter some text (different form "no") for second field, you will receive "..." is not a field name option.
- if you enter "no", an "Object reference not set to an instance of an object." exception will be thrown.
Some workarounds Explicitly define terms for SecondField containing single words. For example by annotating the SecondField property with:
[Terms(new string[] { "second", "field" })]
This is a bug. Thanks for bringing it to our attention. It will be fixed in the next release.