static/ext/src/form/Basic.js
function(options) {
        options = options || {};
        var me = this,
            action;
            
        if (options.standardSubmit || me.standardSubmit) {
            action = 'standardsubmit';
        } else {
            action = me.api ? 'directsubmit' : 'submit';
        }
            
        return me.doAction(action, options);
    }
function(options) {
        options = options || {};
        var me = this,
            action;
            
        if (options.standardSubmit || me.standardSubmit) {
            action = 'standardsubmit';
        } else {
            action = me.api ? 'directsubmit' : 'submit';
        }
            
        return me.doAction(action, options);
    }
Shortcut to {@link #doAction do} a {@link Ext.form.action.Submit submit action}. This will use the
{@link Ext.form.action.Submit AJAX submit action} by default. If the {@link #standardSubmit} config
is enabled it will use a standard form element to submit, or if the {@link #api} config is present
it will use the {@link Ext.form.action.DirectLoad Ext.direct.Direct submit action}.

The following code:

myFormPanel.getForm().submit({
clientValidation: true,
url: 'updateConsignment.php',
params: {
newStatus: 'delivered'
},
success: function(form, action) {
Ext.Msg.alert('Success', action.result.msg);
},
failure: function(form, action) {
switch (action.failureType) {
case Ext.form.action.Action.CLIENT_INVALID:
Ext.Msg.alert('Failure', 'Form fields may not be submitted with invalid values');
break;
case Ext.form.action.Action.CONNECT_FAILURE:
Ext.Msg.alert('Failure', 'Ajax communication failed');
break;
case Ext.form.action.Action.SERVER_INVALID:
Ext.Msg.alert('Failure', action.result.msg);
}
}
});

would process the following server response for a successful submission:

{
"success":true, // note this is Boolean, not string
"msg":"Consignment updated"
}

and the following server response for a failed submission:

{
"success":false, // note this is Boolean, not string
"msg":"You do not have permission to perform this operation"
}

@param {Object} options The options to pass to the action (see {@link #doAction} for details).
@return {Ext.form.Basic} this