Implement error handling for the create qualification form #19

Merged
ptran merged 9 commits from feature/validation into main 2025-01-08 10:31:38 +00:00
Showing only changes of commit 326972938d - Show all commits

View File

@ -47,9 +47,11 @@ export class CreateQualificationComponent {
getErrorMessage(fieldName: string): string {
const field = this.qualificationForm.get(fieldName);
if (field?.errors?.['required']) {
return 'This field is required';
}
return '';
}