botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

FormFlow and multi-word field's term issues

Open mitkodi opened this issue 10 years ago • 1 comments

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

  1. 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.
  2. 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" })]

mitkodi avatar Sep 25 '16 11:09 mitkodi

This is a bug. Thanks for bringing it to our attention. It will be fixed in the next release.

chrimc62 avatar Oct 05 '16 03:10 chrimc62