<igx-simple-combo #comboSalutation id="comboSalutation" formControlName="salutation" [data]="salutationList"
[displayKey]="'code'" [valueKey]="'code'" [type]="'line'" (selectionChanging)="salutationAndGenderCheck($event)">
<label igxLabel>Salutation</label>
</igx-simple-combo>
salutationAndGenderCheck(event: any) {
const selectedSalutation = event.newSelection;
const selectedGender = this.memberAndPlanInfoForm.get('genderId')?.value;
if (selectedSalutation && selectedGender) {
this.validateGenderBasedOnSalutation(selectedSalutation, selectedGender);
}
}