Based on selection of file type conditional validation is applied
{{userInfoFormGroup.controls.imageType.errors.image.message}}
{{userInfoFormGroup.controls.profilePhoto.errors.image.message}}
{{userInfoFormGroup.controls.signature.errors.image.message}}
{{userInfoFormGroup.controls.voterId.errors.image.message}}
{{userInfoFormGroup.controls.identityCard.errors.image.message}}
{{userInfoFormGroup.controls.drivinglicense.errors.image.message}}
If you want to apply conditional validation on 'Aadhar Card' then you need to add 'Image Type' input as 'IdentityCard'.
{{userInfoFormGroup.controls.aadharCard.errors.image.message}}
If you want to apply conditional validation on 'Document File' then you need to add 'File Type' input as 'IdentityCard'.
{{userInfoFormGroup.controls.panCard.errors.image.message}}
Invalid Image height or width.
It shows custom message
{{userInfoFormGroup.controls.residenceProof.errors.image.message}}