Skip to content

Commit fa96f5a

Browse files
committed
Update custom validation demo
1 parent 3b9d708 commit fa96f5a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: examples/example.html

+3
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,9 @@ <h3>Schema</h3>
229229
// To test the tinymce addon, uncomment the files above and inject 'tx-tinymce' below.
230230
/*global alert*/
231231
var app = angular.module('test', ['schemaForm', 'ui.ace', 'ngClipboard', 'ui.bootstrap.tooltip', 'schemaForm-tinymce']);
232+
app.config(['sfErrorMessageProvider', function(sfErrorMessageProvider) {
233+
sfErrorMessageProvider.setDefaultMessage(10001, 'Whoa! Can you double check that email address for me?');
234+
}]);
232235
app.controller('TestCtrl', function($scope, $http, $location) {
233236
tv4.defineError('EMAIL', 10001, 'Invalid email address');
234237
tv4.defineKeyword('email', function(data, value, schema) {

0 commit comments

Comments
 (0)