I have created two different flowable repeating subforms, for example - subform1 and subform2 in a document with an action button for each to add another subform on the next page. After subform2, I have two buttons - one to add subform1 again or add subform2 on the next page. When I click the button, Livecycle adds the new subform as commanded but the subform is added directly after the previous same subform not on the next page as requested. I have tried to change the pagination settings but nothing seems to work. Can anyone help me define how to get the repeating subform to add to the next page and not after the same subform?
1. Wrap your subform1 and subform2 in a subform. I'll call it sfMaster.
2. Change your minimum instance for subform1 and 2 to 0 or uncheck the box, and set the initial count to 1. (That way you get at least one of each when we start.)
3. have the buttons create a new instance of sfMaster, then remove the instance of the subform you didn't want within that most recent instance.
So, what the user sees is a new subform1 or 2 each time they hit a button. And they'll appear in whatever order they choose it. The user doesn't have to know that what is actually happening is the creation of a new "master" subform that holds both subform1 and 2.
To help illustrate what I mean, I've added a pink border around sfMaster and colored subform1 and 2.
Binding options for Subform2 (Subform1 would be similar)
What it looks like in action
If you want to guarantee it appears on the next page, you'll need to add the conditional break from earlier. Keep working with it to get the settings just right. You may even want a docReady() event that creates two sfMaster's and sets one to have Subform1 and the other to have Subform2.
Thank you for the response. Tried this and unfortunately, it did not work. It still placed the second occurrence of subform1 directly after the first occurrence of subform1 rather than after subform2 where the ADD button was located. Any other suggestions?
Well, this may mess up a LOT of other things on your form, but you could add a conditional break. For example, this conditional break will cause the page to break for every subform2 after the first one. That will keep the first subform2 behind your subform1. (Presuming nothing else is going to push it off of the page.)