@hmcts/ccd-case-ui-toolkit 7.3.68 → 7.3.69-inconsistent-validation-error-message
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11732,6 +11732,11 @@ class CaseEditPageComponent {
|
|
|
11732
11732
|
this.caseEditDataService.addFormValidationError({ id, message: `%FIELDLABEL% exceeds the maximum length`, label });
|
|
11733
11733
|
fieldElement.markAsDirty();
|
|
11734
11734
|
}
|
|
11735
|
+
else if (fieldElement.hasError('markDownPattern')) {
|
|
11736
|
+
this.caseEditDataService.addFormValidationError({
|
|
11737
|
+
id, message: `The data entered is not valid for %FIELDLABEL%. Link mark up characters are not allowed in this field.`, label
|
|
11738
|
+
});
|
|
11739
|
+
}
|
|
11735
11740
|
else if (fieldElement.invalid) {
|
|
11736
11741
|
if (casefield.isComplex()) {
|
|
11737
11742
|
errorPresent = this.generateErrorMessage(casefield.field_type.complex_fields, fieldElement, id, true);
|