Skip to content

Commit 2cd4264

Browse files
authored
WEB-888 Add missing validation error messages for required fields in Loan Re-Age and Foreclosure forms (#3430)
1 parent b37fbbb commit 2cd4264

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

src/app/loans/loans-view/loan-account-actions/foreclosure/foreclosure.component.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,13 @@
5858

5959
<mat-form-field>
6060
<mat-label>{{ 'labels.inputs.Note' | translate }}</mat-label>
61-
<textarea matInput formControlName="note" cdkTextareaAutosize cdkAutosizeMinRows="2"></textarea>
61+
<textarea matInput required formControlName="note" cdkTextareaAutosize cdkAutosizeMinRows="2"></textarea>
62+
@if (foreclosureForm.controls.note.hasError('required')) {
63+
<mat-error>
64+
{{ 'labels.inputs.Note' | translate }} {{ 'labels.commons.is' | translate }}
65+
<strong>{{ 'labels.commons.required' | translate }}</strong>
66+
</mat-error>
67+
}
6268
</mat-form-field>
6369
</div>
6470

src/app/loans/loans-view/loan-account-actions/loan-reaging/loan-reaging.component.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,19 @@
2222
</mat-form-field>
2323
<mat-form-field>
2424
<mat-label>{{ 'labels.inputs.Frequency Type' | translate }}</mat-label>
25-
<mat-select formControlName="frequencyType">
25+
<mat-select formControlName="frequencyType" required>
2626
@for (frequencyType of periodFrequencyOptions; track frequencyType) {
2727
<mat-option [value]="frequencyType">
2828
{{ frequencyType }}
2929
</mat-option>
3030
}
3131
</mat-select>
32+
@if (reagingLoanForm.controls.frequencyType.hasError('required')) {
33+
<mat-error>
34+
{{ 'labels.inputs.Frequency Type' | translate }} {{ 'labels.commons.is' | translate }}
35+
<strong>{{ 'labels.commons.required' | translate }}</strong>
36+
</mat-error>
37+
}
3238
</mat-form-field>
3339
<mat-form-field (click)="startDatePicker.open()">
3440
<mat-label>{{ 'labels.inputs.Start Date' | translate }}</mat-label>

0 commit comments

Comments
 (0)