kyc changes

This commit is contained in:
sriram-at-840620226347 2019-11-02 17:26:59 +05:30
parent c7fef7d1b4
commit 66bdaaac17
2 changed files with 6 additions and 6 deletions

View File

@ -99,7 +99,7 @@
</ion-row>
</ion-label>
<!--<p><ion-icon name="school"></ion-icon> {{item.get('qualification').value}}</p>-->
<button ion-button align="end" *ngIf="i > 0" item-end small clear (click)="editIndividuals(i)" >
<button ion-button align="end" item-end small clear (click)="editIndividuals(i)" >
<ion-icon name="md-create"></ion-icon>
</button>
</ion-item>
@ -277,7 +277,7 @@
</mat-option> </mat-select>
<mat-error *ngIf="generalForm.controls['is_kyc'].hasError('required')">KYC Required</mat-error>
</mat-form-field>
<mat-form-field class="mt-1" style="width: 100%" *ngIf="generalForm.controls.is_kyc.value == 'no'">
<mat-form-field class="mt-1" style="width: 100%" *ngIf="generalForm.controls.is_kyc.value == 'no' && generalForm.controls.kyc_and_captur_the_name" >
<input matInput placeholder="Name as per KYC and capture the name." formControlName="kyc_and_captur_the_name"
type="text">
</mat-form-field>

View File

@ -447,7 +447,7 @@ export class PdQuestionGeneralInfoPage {
let formData : FormGroup=this.fb.group({
applicant_name:[data.applicant_name,Validators.required],
applicant_name:[{value:data.applicant_name, disabled: this.updateIndex_indi === 0 ? true : false} ,Validators.required],
is_person_met:data.is_person_met,
is_person_met_pic : data.is_person_met_pic != null ? data.is_person_met_pic : '' ,
is_person_met_id_proof : data.is_person_met_id_proof,
@ -1602,7 +1602,7 @@ console.log('1)',this.temp);
}
kycchange(event){
// console.log(event);
if(event === 'yes') {event.value =='yes' ? this.generalForm.addControl('kyc_and_captur_the_name', new FormControl('')) : this.generalForm.removeControl('kyc_and_captur_the_name');}
}
console.log(event);
event =='no' ? this.generalForm.addControl('kyc_and_captur_the_name', new FormControl('')) : this.generalForm.removeControl('kyc_and_captur_the_name');
}
}