Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

New Instances of Altered Subform

Avatar

Level 2

I have a form in which I call setInstances(x) to generate multiple instances of a subform.

Only I want to gather some data from the user first and have that data replicated in the new instances. As it is, the new instances are based on the original empty version of the form.

Is there a way to do this?

Thanks.

1 Reply

Avatar

Level 7

I dont know if there is an easier way, but I would just store the user data in global variables and just write switch code to copy to the new subforms.