I have an item stored within two other items called formKeyValues
and form
formKeyValues
https://i.stack.imgur.com/nRfiu.png
form
https://i.stack.imgur.com/eDpid.png
I am looking to extract only the keys and values from formKeyValues
and place them in a new array called parameter
- with keys corresponding to form.formKeys
-
While attempting this, I encountered some issues.
this.formKeyValues=this.selectedTimeLine.formKeyValues;
this.parameter=[];
this.formKeyValues.forEach((para)=>{
if(para.key==this.selectedTimeLine.form.formKeys){
this.parameter.push('d[/data/'+this.selectedTimeLine.form.formId+'/'+para.key+']='+para.value);
}
});