You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -268,9 +268,14 @@ var enErrorDialogs = {
268
268
</script>
269
269
...
270
270
```
271
+
### Input Specific Error Messages ###
272
+
It's also possible to override the default validation error message. If you add the attribute `data-validation-error-msg` to a form input element, the value of
273
+
that attribute will be used as the validation error message.
274
+
275
+
### Input Specific Error Message Container ###
276
+
It's also possible to use a separate container (div, etc) to hold a specific error message for a specific form input element. A text input with `name=profilephoto` can have a separate container with `id=profilephoto_errMsgContainer`.
277
+
The default value of this suffix `errMsgContainer` is defined in the default config, and can be overwritten to fit your nomenclature preferences.
271
278
272
-
It's also possible to add inline error messages. If you add attribute `data-validation-error-msg` to an element the value of
273
-
that attribute will be displayed instead of the error dialog that the validation function refers to.
0 commit comments