Skip to content

Commit a8f42e4

Browse files
Merge pull request #2826 from JaySoni1/WEB-440-show-validation-error-messages-beside-name-and-description-fields-in-create-recurring-deposit-product-form
WEB-440 Show validation error messages beside Name and Description fi…
2 parents 07a4416 + 80baf18 commit a8f42e4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/app/products/recurring-deposit-products/recurring-deposit-product-stepper/recurring-deposit-product-interest-rate-chart-step/recurring-deposit-product-interest-rate-chart-step.component.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,19 @@ <h3 class="mat-h3 flex-83">{{ 'labels.heading.Interest Rate Charts' | translate
3333
<mat-form-field class="flex-28 m-r-5">
3434
<mat-label>{{ 'labels.inputs.Name' | translate }}</mat-label>
3535
<input matInput formControlName="name" required />
36+
<mat-error *ngIf="chart.get('name')?.touched && chart.get('name')?.hasError('required')">
37+
{{ 'labels.inputs.Name' | translate }} {{ 'labels.commons.is' | translate }}
38+
<strong>{{ 'labels.commons.required' | translate }}</strong>
39+
</mat-error>
3640
</mat-form-field>
3741

3842
<mat-form-field class="flex-70">
3943
<mat-label>{{ 'labels.inputs.Description' | translate }}</mat-label>
4044
<textarea matInput formControlName="description" required></textarea>
45+
<mat-error *ngIf="chart.get('description')?.touched && chart.get('description')?.hasError('required')">
46+
{{ 'labels.inputs.Description' | translate }} {{ 'labels.commons.is' | translate }}
47+
<strong>{{ 'labels.commons.required' | translate }}</strong>
48+
</mat-error>
4149
</mat-form-field>
4250

4351
<mat-form-field class="flex-48 m-r-5" (click)="validFromDatePicker.open()">

0 commit comments

Comments
 (0)