diff --git a/source/Ox.UI/js/Form/Ox.Form.js b/source/Ox.UI/js/Form/Ox.Form.js index b126afd9..ab5925c8 100644 --- a/source/Ox.UI/js/Form/Ox.Form.js +++ b/source/Ox.UI/js/Form/Ox.Form.js @@ -86,12 +86,11 @@ Ox.Form = function(options, self) { function submitCallback(data) { data.forEach(function(v, i) { - self.$items[i].setMessage(v.message); + self.$items[getItemIndexById(v.id)].setMessage(v.message); }); } function validate(pos, valid) { - //Ox.print('FORM validate', pos, valid) self.itemIsValid[pos] = valid; if (Ox.every(self.itemIsValid) != self.formIsValid) { self.formIsValid = !self.formIsValid;