Skip to content

Instantly share code, notes, and snippets.

@jburditt
Last active March 29, 2019 00:11
Show Gist options
  • Save jburditt/b6874ba257998da20b591886d17b5ea2 to your computer and use it in GitHub Desktop.
Save jburditt/b6874ba257998da20b591886d17b5ea2 to your computer and use it in GitHub Desktop.
ExtJs get validation errors from from
var fields = form.getFields();
var errorDetails = '';
fields.each(function (field) {
var errors = field.getErrors();
for (var i = 0; i < errors.length; i++) {
errorDetails += errors[i] + '<br>';
}
});
Ext.Msg.alert('Error', errorDetails);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment