data entered not save
Good day, community.
I have a form that has multiple subforms, produced using AEM. It is working fine with the exception of this.
Background: The subform has an addInstance function, and when that is clicked, it copies the rest of what is in the subform. Same goes when the user clicks the remove button, it activates removeInstance function. Everything is fine except when the user decided to save the form. It saves the data as long as there is one instance of the subform. If the user adds 2 or more instances of the subform and saves it and opens it, the 2nd instance of the subform is not retained, only the 1st one. Any ideas why is it doing that? Hopefully, you understand what I meant.
Thank you in advance.
