Skip to main content
Participant
October 2, 2025
Question

data entered not save

  • October 2, 2025
  • 1 reply
  • 77 views

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.

1 reply

creative explorer
Community Expert
Community Expert
October 3, 2025

@j._4883 I am just guessing here, with your repeatable sections (like your added subform instances) is not uniquely label indivdually. Think of your form like a filing cabinet: it knows exactly where to put the information from the first subform (the one that's always there). However, when you add a second or third copy, the software (Acrobat and the way AEM structured the form) might not be giving those new copies unique "labels" or data spots in the final saved file. As a result, when you save and reopen, it can only see the data it knows how to label—the data from the very first copy—and the data from the extra copies gets lost because it didn't know where to properly store it. The fix usually involves ensuring the form's structure is set up so that each new subform instance is given a distinct, repeatable name in the data model so the save function knows how to keep track of all of them

m