Skip to content

Ext JS 4 Form request response parameters

tayfunoziserikan edited this page Dec 24, 2011 · 2 revisions

Form submission and send parameters

params: {
  field_1: 'xyz', // string, required
  field_2: 123 // integer required
}

Server Response with no errors

{
  "success": true,
  "msg": "Operation was successful"
}

Server Response with errors

{
  "success": false,
  "errors": {
    "field_1": "Field 1 error message",
    "field_2": "Field 2 error message"
  }
  "msg": "Operation was not successful",
}