Results 1 to 3 of 3

Thread: FormPanel: submitOnAction: true doesn't work

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Jul 2012

    Exclamation FormPanel: submitOnAction: true doesn't work

    Test case
    There is a Fiddle for you here. I don't think I did anything wrong with it? It's a small test.

    Touch version tested


    Browser versions tested against
    Android 4.1.2, Chrome 32 on Windows 7

    DOCTYPE tested against

    A form with submitOnAction: true (so that while editing a field and then pressing Go on software keyboard, or enter on desktop browser triggers form submit) will always generate an error in the console and not let any submit handlers run. The code for onFieldAction seems wrong.

    Steps to reproduce the problem
    Tap/click the field. press enter, or Go on soft keyboard.

    The result that was expected
    alert is shown.

    The result that occurs instead
    Error in console: Uncaught TypeError: Cannot read property 'submitDisabled' of undefined

    Additional info
    Relevant source code in Ext.form.Panel shown here:

    The submit handler requires options param to be set if standardSubmit is falsy.

        submit: function(options, e) {
            var me = this,
                formValues = me.getValues(me.getStandardSubmit() || !options.submitDisabled),
    this.submit doesn't send any options param.

        // @private
        onFieldAction: function(field) {
            if (this.getSubmitOnAction()) {

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011


    Thanks for the report. This is a known issue TOUCH-5258. Here's the url to the override to fix it.
    Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services [email protected]

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

  3. #3
    Sencha Premium Member
    Join Date
    Jul 2012


    Thanks, that's good. This is why we as user's need access to the bugtracker so that we can search for bugs, and their status, planned fix date etc.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts