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

FormFlow Attribute [Numeric(20, 100)] allows "a"

Open df42 opened this issue 9 years ago • 4 comments

When using a form with the following limitations, it allows the input of the character "a" without "". The value is converted to integer 0

Sample:

[Numeric(20, 100)] [Template(TemplateUsage.NotUnderstood, ""{0}" is not a valid value.")] [Prompt("Which temperature would you like to assign?")] [Describe("EndTemperature")] public int EndTemperature;

Any suggestion is welcome

df42 avatar Jan 24 '17 10:01 df42

@df42 what version of the Bot Builder are you running--is it the latest? There was a bug around this that was fixed two releases ago if I remember correctly.

chrimc62 avatar Feb 01 '17 17:02 chrimc62

Issue #1922 was the previously fixed bug.

chrimc62 avatar Feb 01 '17 18:02 chrimc62

@chrimc62 Version used is 3.3.3, i'll re-test it with 3.5.1 later. Thanks

df42 avatar Feb 02 '17 09:02 df42

Closing due to inactivity. If you still have the issue with the latest bot builder, please reopen.

chrimc62 avatar Feb 13 '17 23:02 chrimc62