diff --git a/webapp/web/js/customFormUtils.js b/webapp/web/js/customFormUtils.js index 91a2a85be..0f10633a3 100644 --- a/webapp/web/js/customFormUtils.js +++ b/webapp/web/js/customFormUtils.js @@ -41,8 +41,12 @@ vitro.customFormUtils = { }, // Return true iff there are validation errors on the form + //Updating to include new functionality where errors are on top of page findValidationErrors: function() { - + var validationErrorSection = $('#error-alert'); + if(validationErrorSection.length > 0) { + return true; + } return this.form.find('.validationError').length > 0; // RY For now, we just need to look for the presence of the error elements.