Hey guys,
I am currently working on a DynamicForm which has saveOnEnter enabled with a submit function. In that form I also have a TextItem with a keyPressFilter, which allows only numbers to 5 and commas.
The problem appears when entering a number with comma and afterwards entering another number without comma. Doing so and calling TextItem.getValue() inside the submit function will cause getting the old value of the text item.
A gif with the described issue:
This also happens if there is no submit between changing the inputs:
Following also the example code:
This issue is reproducible with the current SmartClient nighly (v10.0p_2015-04-12) and all current browser versions (Firefox, Chrome and IE)
Best Regards
I am currently working on a DynamicForm which has saveOnEnter enabled with a submit function. In that form I also have a TextItem with a keyPressFilter, which allows only numbers to 5 and commas.
The problem appears when entering a number with comma and afterwards entering another number without comma. Doing so and calling TextItem.getValue() inside the submit function will cause getting the old value of the text item.
A gif with the described issue:
This also happens if there is no submit between changing the inputs:
Following also the example code:
Code:
isc.DynamicForm.create({ "ID" : "form", "left" : 5, "submit" : function () { isc.say("Current value: " + textItem.getValue()) }, "saveOnEnter" : true, "hideUsingDisplayNone" : false, "fields" : [{ "ID" : "textItem", "title" : "TextItem", "type" : "text", "keyPressFilter" : "[0-5.,-]" } ] })
Best Regards
Comment