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