This is the stackblitz with the error: https://stackblitz.com/edit/angular-ivy-2wzubf
This is the error i get: Cannot find control with path: 'config -> URL -> 1 -> priority'
Well, i have this form configured with reactiveForms:
this.formDatasource = this.fb.group({
name: ['', Validators.required],
baseUrl: ['', Validators.required],
config: this.fb.group({
SEARCH: this.fb.array([this.createKeyValue()]),
URL: this.fb.array([
this.fb.group({
priority: ['', Validators.required],
key: ['', Validators.required],
value: this.fb.array([
this.fb.group({
param: ['', Validators.required],
rule: ['']
})
])
})
]),
TEMPLATE: this.fb.group({
advert_none_container: [''],
advert_string_title: [''],
advert_number_price: [''],
advert_number_area: [''],
advert_number_bedroom: [''],
advert_number_bathroom: [''],
advert_number_box: [''],
advert_url_link: [''],
advert_array_photo: [''],
advert_location_address: ['']
})
})
});
Inside config i have URL, that is an array of fields: priority, key, value. Value is is an array of param and rule.
[![enter image description here][1]][1] The button in the red circle works well, it's an array of fields too, but the button in the blue circle throws me the error, i don't know whats going on with these form :/ [1]: https://i.sstatic.net/yhZkI.png