personal info changes
This commit is contained in:
parent
4ca56e43bf
commit
1d4615b1e5
@ -167,14 +167,26 @@ submitPersonalForm(formData:any) {
|
|||||||
|
|
||||||
formData.mainItem.forEach((element,key) => {
|
formData.mainItem.forEach((element,key) => {
|
||||||
if(key==0){
|
if(key==0){
|
||||||
applicantDetails.push(element)
|
applicantDetails.push({
|
||||||
|
"name_ans":element.name_ans,
|
||||||
|
"age_ans":element.age_ans,
|
||||||
|
"entity_ans":element.entity_ans,
|
||||||
|
"qualification_ans":element.qualification_ans,
|
||||||
|
"earning_ans":element.earning_ans,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
console.log(element);
|
|
||||||
console.log(key);
|
|
||||||
|
|
||||||
});
|
});
|
||||||
formData.coItem.forEach((Coelement,Cokey) => {
|
formData.coItem.forEach((Coelement,Cokey) => {
|
||||||
applicantDetails.push(Coelement)
|
applicantDetails.push({
|
||||||
|
|
||||||
|
"name_ans":Coelement.name_ans,
|
||||||
|
"age_ans":Coelement.age_ans,
|
||||||
|
"qualification_ans":Coelement.qualification_ans,
|
||||||
|
"entity_ans":Coelement.entity_ans,
|
||||||
|
"earning_ans":Coelement.earning_ans,
|
||||||
|
"relation_ans":Coelement.relation_ans,
|
||||||
|
})
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -183,7 +195,7 @@ submitPersonalForm(formData:any) {
|
|||||||
"formid": this.form_id,
|
"formid": this.form_id,
|
||||||
"applicant_details":applicantDetails
|
"applicant_details":applicantDetails
|
||||||
};
|
};
|
||||||
this._pd.savePDQuestions(save_details).subscribe(result => {
|
this._pd.savePDFormDetailsWithID(save_details).subscribe(result => {
|
||||||
if (result.status == 200) {
|
if (result.status == 200) {
|
||||||
this.notifier.notify('success', 'Success.');
|
this.notifier.notify('success', 'Success.');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user