Announcement

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

    autoFocus in DynamicForm prevents submit event

    Hi there,

    There seems to be an issue using autoFocus in DynamicForm. If enabled, the form doesnt fire the submit-event. We are currently testing SmartClient_v100p_2014-10-15_Pro and its tested on latest versions of Firefox and Chrome. I'm pretty sure it also happens in previous version of smartclient (9.1)

    Here's a example you can paste it in here.
    Also the default behaviour of the autoFocus was changed between 9.1 and 10.0. The value of the item is no longer selected completly instead the only the cursor is at the end. Was this supposed to happen? You can take a look at this, when you copy the same code in here
    Code:
    isc.DynamicForm.create({
    	"ID" : "formID",
    	"submit" : function () {
    		alert('submit fired');
    	},
    	"autoFocus" : true,
    	"selectOnFocus" : true,
    	"saveOnEnter" : true,
    	"readOnlyDisplay" : "static",
    	"fields" :
    	[{
    			"ID" : "start",
    			"name" : "start",
    			"title" : "The date",
    			"type" : "date",
    			"textAlign" : "left",
    			"parseEditorValue" : function (value, form, item) {
    				return value;
    			},
    			"useTextField" : true,
    			"showChooserWeekPicker" : true
    		}
    	],
    	"values" : {
    		"start" : "01.10.2014"
    	}
    })
    Best Regards
    Simon

    #2
    In this case, in the Feature Explorer, the FormItem is not actually being properly focused, because the last event received by the EventHandler is a mouse event, fired by clicking the "Try It" button.

    We'll take a look at that, but you can fix it in the meantime by also specifying selectOnClick: true

    Comment


      #3
      Thanks for the information
      The main issue for us is the not called submit-event. By trying to reproduce this, we found the issue about the selection.

      Hopefully there is a fast fix for the submit event ;-)

      Comment


        #4
        Ok, we've fixed that - please retest with a build dated October 17 or later

        Comment


          #5
          We've also now made a change to address the selection issue - try the next nightly build dated Oct 18 or above (10.0 and 10.1 branches)

          Regards
          Isomorphic Software

          Comment


            #6
            all fixes works
            thanks

            Comment

            Working...
            X