Expand my Community achievements bar.

SOLVED

Conditional break - first instance of repeating subforms

Avatar

Level 2

I have a repeated subform (new instances added by a button). It is flowed and page breaks within content are allowed. Pagination is set to Following Previous/Continue filling Parent. I want all instances of the subform to start on a new page, except for the first instance.


I feel this can be achieved by specifying a Conditional Break. I set to "Break Before", but what do I specify as the When condition? I have tried a When condition of:


higherlevelforms._mysubform.count > 1


This causes all subforms to start on a new page, but how can I add "except for the first instance of mysubform" to the condition so that the first instance of mysubform doesn't start a new page?


Thank you.

1 Accepted Solution

Avatar

Correct answer by
Level 2

All I had to do was test for this.index:

higherlevelforms._mysubform.count > 1 && this.index > 0



View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

All I had to do was test for this.index:

higherlevelforms._mysubform.count > 1 && this.index > 0