@hmcts/ccd-case-ui-toolkit 7.0.37-rc1 → 7.0.37-rc2

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.
@@ -4582,7 +4582,8 @@ class FormValidatorsService {
4582
4582
  }
4583
4583
  control.setValidators(validators);
4584
4584
  }
4585
- else if (caseField.display_context === 'OPTIONAL' && (caseField.field_type.type === 'Text' || caseField.field_type.type === 'TextArea')) {
4585
+ else if (caseField.display_context === 'OPTIONAL' && (caseField.field_type.type === 'Text' || caseField.field_type.type === 'TextArea')
4586
+ || (caseField.display_context === 'COMPLEX' && caseField.field_type.type === 'Complex')) {
4586
4587
  control.setValidators(this.markDownPatternValidator());
4587
4588
  }
4588
4589
  return control;