I am trying to add a repeating subform, but the page ends right after the first instance. So, when I preview and add another instance of the subform, most of the content is not getting displayed. Can anyone please help? I pasted this subform on a new page and it did, indeed, add new subforms. However, when the page ends, so does the ability to have more instances of the subform.
A second issue is that the button to subtract added subforms does not show up when I add a new subform from the preview. I have checked the code. I used the buttons from the PurchaseOrder.xdp sample. Thanks for any hints!
Your repeating subform must be contained in a 'Flowed" object. In addition, this parent flowed object must have the "Allow Page Breaks within Content" checkbox checked. Both of these are on the same tab in the Properties Panel.
You can wrap your subform in a subform, and make the wrapper subform Flowed with page breaks allowed.
With regards to the button, to use the code in the Purchase Order example to remove an instance, if your button lies outside the repeating subform or tablerow you will have to use the appropriate reference syntax--you will need to include the parent: