latest changes
This commit is contained in:
parent
c5259757ba
commit
1fce773507
@ -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();
|
||||||
|
|||||||
@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user