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.
Please suggest.
Thanks in advance
Solved! Go to Solution.
Views
Replies
Total Likes
Ok, given you subforms are childs of a body page or subform named "Page", you can add this JavaScript into the contidional break dialog of subform2.
// 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!
Ok, given you subforms are childs of a body page or subform named "Page", you can add this JavaScript into the contidional break dialog of subform2.
// 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!
I am unable to get this I have below scenario
under condition ---- Page.resolveNodes('#subform.[$.presence eq "visible"]').item(0).name !== this.name
Am I doing something wrong please help me.
Thanks in advance
Views
Replies
Total Likes
I have tried with below also but unable to get page break before second subform "content2"
Views
Replies
Total Likes
Change the scriping language to JavaScript.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies