latest changes

This commit is contained in:
Your Name 2021-08-16 18:01:28 +05:30
parent c5259757ba
commit 1fce773507
2 changed files with 6 additions and 3 deletions

View File

@ -24,7 +24,8 @@ export class DynamicFormComponent implements OnInit {
constructor(private _fb:FormBuilder,private questionService:QuesFormService) { } constructor(private _fb:FormBuilder,private questionService:QuesFormService) { }
ngOnInit() { ngOnInit() {
console.log('answers');
//console.log(this.json_answers[0].stakeholder_length)
this.form_group_name=this.questionService.assignFormControl_array(this.form_group_name,this.questions_JSON.questions) this.form_group_name=this.questionService.assignFormControl_array(this.form_group_name,this.questions_JSON.questions)
this.generateGroupControls(); this.generateGroupControls();

View File

@ -140,10 +140,12 @@ export class FormComponent implements OnInit {
console.log('getsectionn'); console.log('getsectionn');
console.log(formValues); console.log(formValues);
console.log(formValues.key_stakeholders[0].stakeholder_length);
if(formValues.key_stakeholders[0].stakeholder_length=='2') if(formValues.key_stakeholders[0].stakeholder_length=='2')
{ {
let controlcount='2'; let controlcount='2';
this.quesService.ques_length(controlcount) this.quesService.ques_length(controlcount)
} }
else else
{ {