Duplicate pages button does not generate new page
I am almost done with the Form from Heck!
I have a page that needs to be duplicated when a button is clicked.
Ideally, when the button is clicked, a copy of the page will be created, placed at the end of the pdf, with new empty fields ready to be filled in.
I used this previous post as a guide and was able to make the button.
However, it places the duplicate subform on the same page, and not at the top of a new one.
I'm sure I just have something, somewhere, set incorrectly.
The page is a landscape master page (Page2). It is set as Flowed, Allow Page Breaks, Pagination is OnPage "Page2" and Binding is set for Repeat Subform for Each Data Item.
There is a subform on this page (CurrentandPending_subform) which contains all the elements I'd like to have on the duplicate page. This includes other subforms and a dynamic table and other elements.
The settings on this subform are: Flowed, Top to Bottom, Allow Page Breaks; Pagination On Page, "Page2"; Binding Repeat Subform for Each Data Item.
The script on the button is: _CurrentandPending_subform.addInstance(true);
Is the problem just the script? Can it be tweaked to open a new page?

The table has an "addInstance" to create additional rows, and that's working correctly.
Again, I'm not sure if I'm providing too much detail, or not enough.
I appreciate any help. Thank You
