From: Alan Knowles Date: Fri, 22 Jan 2021 04:12:54 +0000 (+0800) Subject: Roo/form/BasicForm.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=978e512d378b6567604bb39734742d64c1c908fc Roo/form/BasicForm.js --- diff --git a/Roo/form/BasicForm.js b/Roo/form/BasicForm.js index e0948c9e5b..2a6bb59382 100644 --- a/Roo/form/BasicForm.js +++ b/Roo/form/BasicForm.js @@ -178,7 +178,26 @@ Roo.extend(Roo.form.BasicForm, Roo.util.Observable, { return valid; }, - + /** + * Returns array of invalid form fields. + * @return Array + */ + + invalidFields : function() + { + var ret = []; + this.items.each(function(f){ + if(f.validate()){ + return; + } + ret.push(f); + + }); + + return ret; + }, + + /** * DEPRICATED Returns true if any fields in this form have changed since their original load. * @return Boolean