Last active
March 29, 2019 00:11
-
-
Save jburditt/b6874ba257998da20b591886d17b5ea2 to your computer and use it in GitHub Desktop.
ExtJs get validation errors from from
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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