Hi,
I’m facing this bug when I try to validate a DynamicForm with a localFloat field.
What I expect is that when I put a correct value the validation passes without error, but in some cases the validation returns a “not a valid decimal” error.
These are the steps to reproduce the problem which only happens after other validation errors:
In this case I suppose the problem is the fact that it keeps the format characters.
Other ways to produce this error are:
Code snippet to be used: here
I’m facing this bug when I try to validate a DynamicForm with a localFloat field.
What I expect is that when I put a correct value the validation passes without error, but in some cases the validation returns a “not a valid decimal” error.
These are the steps to reproduce the problem which only happens after other validation errors:
- Fill 'integer' field with incorrect value (i.e. 'hello')
- Fill 'account' field with a correct value (i.e. 1200.5)
- Validate
- Validate again
In this case I suppose the problem is the fact that it keeps the format characters.
Other ways to produce this error are:
- Fill the field with the value: 9.00 and validate (if you try with 9.01 the error disappear)
- Fill the field with a correct value and press enter before validating (this also happens with other keys)
- v10.0p_2015-11-18/Enterprise Development Only
Code snippet to be used: here
Code:
isc.DynamicForm.create({ ID: "boundForm", dataSource: "type", fields: [ {name: "intField"}, { name: "account", type: "localeFloat", format: ",##0.00 €", defaultValue: 0 } ] }); isc.Button.create({ top: 60, title: "Validate", click: "boundForm.validate()" });
Comment