diff --git a/src/directives/schema-validate.js b/src/directives/schema-validate.js index eabe24ac1..cfa335260 100644 --- a/src/directives/schema-validate.js +++ b/src/directives/schema-validate.js @@ -41,6 +41,11 @@ angular.module('schemaForm').directive('schemaValidate', ['sfValidator', 'sfSele return viewValue; } + // Omit TV4 validation + if (scope.options && scope.options.tv4Validation === false) { + return viewValue; + } + var result = sfValidator.validate(form, viewValue); // Since we might have different tv4 errors we must clear all // errors that start with tv4-