Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Multiple repeating subforms appearing in sequence of selection, not grouped.

Avatar

Level 1

Hi all, I have a problem with repeating subforms. On my form I have multiple subforms that I want to have the option of repeating via buttons. The problem it seems is I want them to appear on the form in the sequence in which the buttons were pressed and not appearing in groups (eg. subform A, subform B, subform A, NOT subform A, subform A, subform B)

For example:

- subform A

- subform B

- subform C

Press subform A button (linked to Action "Add new instance of subform A") which makes that subform appear.

Then do the same for subform B.

Then if you want another subform A to appear I want it to appear in sequence of those selected (eg. subform A, subform B, subform A), not subform A, subform A, subform B.

.

Any help would be greatly appreciated.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi there,

I think your best option would be having each of those subforms inside a subform...

When an instance of any of those subform are added, add the parent's instance subform and hide/show the right subforms you wanted to add instances

E.g.:

Hope this help!

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi there,

I think your best option would be having each of those subforms inside a subform...

When an instance of any of those subform are added, add the parent's instance subform and hide/show the right subforms you wanted to add instances

E.g.:

Hope this help!