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:
