@hmcts/ccd-case-ui-toolkit 7.3.74 → 7.3.75-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.
@@ -11762,6 +11762,11 @@ class CaseEditPageComponent {
11762
11762
  this.caseEditDataService.addFormValidationError({ id, message: `%FIELDLABEL% exceeds the maximum length`, label });
11763
11763
  fieldElement.markAsDirty();
11764
11764
  }
11765
+ else if (fieldElement.hasError('markDownPattern')) {
11766
+ this.caseEditDataService.addFormValidationError({
11767
+ id, message: `The data entered is not valid for %FIELDLABEL%. Link mark up characters are not allowed in this field.`, label
11768
+ });
11769
+ }
11765
11770
  else if (fieldElement.invalid) {
11766
11771
  if (casefield.isComplex()) {
11767
11772
  errorPresent = this.generateErrorMessage(casefield.field_type.complex_fields, fieldElement, id, true);