Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

Using master page in fragment

Avatar

Level 2

Hi,

in a AEM Forms document I use a fragment (let's call it A), which also includes the master pages where there is a title (let's call it H) to be placed at the top of the pages.
Through a for loop I create n instances of A (with addInstance method). Each of these instances of A can be x pages, with x variable. How can I associate a growing number with H for each instance of A?
That is, "text of H" + "1" on the pages of the first instance of A, "text of H" + "2" on the pages of the second instance of A, etc

0 Replies