Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

data entered not save

Community Beginner ,
Oct 02, 2025 Oct 02, 2025

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.

TOPICS
JavaScript , PDF , PDF forms
61
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 02, 2025 Oct 02, 2025
LATEST

@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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines