Sanjoy Roy

[MCM, MCP, SCJP] – Senior PHP Programmer

Form Submit with additional parameters using Sencha (ExtJS)

To submit a form with additional parameters with the form fields, config the param field array like below:

    clientValidation: true,
    url: 'account-processor.php',
    params: {
        task: 'saveProfile',
        sid: SERVICE_SID,
        acc_id: ACCOUNT_ID,
        service_id: SERVICE_SELECTED,
        new_username: NEW_USERNAME
    success: function(form, action) {
       Ext.Msg.alert('Success', action.result.msg);
    failure: function(form, action) {
        switch (action.failureType) {
            case Ext.form.Action.CLIENT_INVALID:
                Ext.Msg.alert('Failure', 'Form fields may not be submitted with invalid values');
            case Ext.form.Action.CONNECT_FAILURE:
                Ext.Msg.alert('Failure', 'Ajax communication failed');
            case Ext.form.Action.SERVER_INVALID:
               Ext.Msg.alert('Failure', action.result.msg);

3 responses to “Form Submit with additional parameters using Sencha (ExtJS)

  1. Medalla 06/10/2011 at 12:09 AM

    Fantastic, just what I was looking for. Thank you

  2. Jina 24/09/2014 at 12:41 PM

    By following the LEED certification requirements,
    you are sure to make intelligent and sustainable building
    choices. Perhaps you want to do landscaping on the
    side and go full-time when you already have a
    steady list of clients. Knowing how to time your purchases at
    the right time can save you a lot of money.

  3. bryandres 04/08/2015 at 4:28 PM

    Do you still need to include the contents of the form submitted or is there no need?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: