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.

Subform set using alternatives

Avatar

Level 1

I created a subform set with different header/footer fragments.  It is bound to a schema that has a data field called CompanyCode.  Using the Alternatives feature, I created code that looks for the current CompanyCode and applies the appropriate header/footer fragment.  It works great!  For the first page.  But if the document rolls over to another page, it pulls over the very first header/footer fragment, not the one associated with the current CompanyCode.  Has anyone else run into this and knows how to fix it??  I am using Adobe LiveCycle ES4

Example of the FormCalc code I used:

2016-04-19_13-38-10.jpg

0 Replies