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 2016-04-19_13-38-10.jpg](/t5/image/serverpage/image-id/5198iCB1CB309B55C7198/image-size/large?v=v2&px=999)