I have two subforms. i have show and hide subform accoriding to some condition.
Layout should be based on condition as below. lets assume x is a condition
1. x is true then show the subform1 and subform2 should show start from second page.
2. x is false then hide the subform1 and subform2 should show on first page.
so requirement is if x is true then i need compulsory page break after subform1.
Thanks in advance
// If this subform is not the first visible under "Page", create a page break.
Page.resolveNodes('#subform.[$.presence eq "visible"]').item(0).name !== this.name
Hope this helps!