Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    getValue of TextItem with enabled keyPressFilter

    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:
    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.,-]"
    		}
    	]
    })
    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

    #2
    Hi there,

    i just want to ask if this issue is under review? Do you need further informations?

    Best Regards

    Comment


      #3
      We made a recent change which is extremely likely to resolve this issue.
      Can you re-test with the latest nightly build and let us know if the problem persists for you.

      Thanks
      Isomorphic Software

      Comment


        #4
        Hey guys,

        I’ve tested the issue again with your latest build and all works fine.

        Thanks.
        Best Regards

        Comment

        Working...
        X