Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Simple Conditional Break - After, Go To Next Page only if

LucreciousDFF
Level 3
Level 3

I require some sunlight on a solution to having a Go To Next Page break after a subform ONLY if the subform has not flowed onto the next page.

 

If it has flowed onto a new page then keep with next.

 

I suspect this has an easy fix, however, I am struggling with it in the pagination panel, overflow subpanel and within the conditional statements popup box.

 

Please provide comments... thank you in advance.

1 Accepted Solution
Kosta_Prokopiu1
Correct answer by
Employee
Employee

@LucreciousDFF 

I think the solution to your requirement lies in using master pages to place your "bottom subform"

The design I have here looks as follows:

Masterpage 1 with reduced content area and subform at the bottom:

Kosta_Prokopiu1_0-1624640545238.pngKosta_Prokopiu1_1-1624640576663.png

Your output page must be flowed for this

Kosta_Prokopiu1_2-1624640657610.png

I use another flowed subform to dynamicaly create n number of lines to test.

With less than page full of lines the result is

Kosta_Prokopiu1_3-1624640829385.png

When the content exceeds the page

Kosta_Prokopiu1_4-1624640860688.png

and with more stuff coming from the dynamic part

Kosta_Prokopiu1_5-1624640911130.png

Does that fit your requirement?

The sample you can download here: https://documentcloud.adobe.com/link/review?uri=urn:aaid:scds:US:e88ff340-f798-40bd-acae-cbef36dd518...

 

View solution in original post

8 Replies
Kosta_Prokopiu1
Employee
Employee
🙂 I am not sure I get this. I try: You have 2 master pages. Normally you want your content to jump frm master page 1 to master page 2 when the pagination occurs. But if a dynamic subform floats it should stay on master page 1 on page break. The next page break should then go to master page 2 again?
LucreciousDFF
Level 3
Level 3
It is a bit more simple; I have a subform at the bottom of the page, there is a small amount of space and I have set that pagination for that subform to "Go to next page" | "After" so there is no more content after it. However, the data above it will under certain rare conditions cause that bottom subform to flow onto the next page, which, then pushes the next content onto the next page leaving a lot of white space. So, what I would like is that the content following the bottom most subform to flow onto the next page if it has not flowed onto another page. In other words, that the content following will be placed onto page 2 if the bottom most subform has not flowed onto page 2 and if it has the content following the bottom most subform will keep with the content after so the white space is not an issue. Does this help?
LucreciousDFF
Level 3
Level 3
Perhaps it is requried for the subform to verify placement after layout and if pg1 then "place following on new page" or if pg2 "keep with next". Not certain if this should be done within conditional break or JavaScript on event.
LucreciousDFF
Level 3
Level 3
After doing some research; I think all that is needed is to check if the subform is on page 1 on layout and if so to set next at the top of the next page. The only issue I am now experiencing is how to code the conditional statement to verify if on page 1 using either formcalc or javascript and if true the rest I can do. I was playing around with xfa.layout.page($) equal to 1 but have not solved it as yet. Any comments would be greatly appreaciated. The is on the Edit Conditional Breaks.
Kosta_Prokopiu1
Correct answer by
Employee
Employee

@LucreciousDFF 

I think the solution to your requirement lies in using master pages to place your "bottom subform"

The design I have here looks as follows:

Masterpage 1 with reduced content area and subform at the bottom:

Kosta_Prokopiu1_0-1624640545238.pngKosta_Prokopiu1_1-1624640576663.png

Your output page must be flowed for this

Kosta_Prokopiu1_2-1624640657610.png

I use another flowed subform to dynamicaly create n number of lines to test.

With less than page full of lines the result is

Kosta_Prokopiu1_3-1624640829385.png

When the content exceeds the page

Kosta_Prokopiu1_4-1624640860688.png

and with more stuff coming from the dynamic part

Kosta_Prokopiu1_5-1624640911130.png

Does that fit your requirement?

The sample you can download here: https://documentcloud.adobe.com/link/review?uri=urn:aaid:scds:US:e88ff340-f798-40bd-acae-cbef36dd518...

 

View solution in original post

LucreciousDFF
Level 3
Level 3
Well Kosta, I am impressed, you clearly put a lot of effort into this solution. However, it does not address the business needs in this case. I absolutely need the content above to remain above and the pagination to only break after at the top of a new page IF and ONLY IF the notification subform remains on page 1. So, in this case I will have to investigate further the conditional breaks and how to script the xfa layout page value if equal to page 1 and ONLY THEN to Go To Next Page if it is on page one. Otherwise, the flow would be the default keep together or continue.
Kosta_Prokopiu1
Employee
Employee
ok, which part is the dynamic here? The content before the notification subform? Does the notification subform flow with the content? Is the notification subform fixed height or also dynamic? Pagination triggers whenever the remaining space on the content area is used up. I doubt that the conditional page break will work like this. I still struggle with the overall structure of your form. In my experience it is the simplest and sequential approaches that work best. Trying to force pagination in the way you describe might work for certain cases but could fail in other. If you can you could share your XDP via PM and google drive - I might be able to come up with a solution.
LucreciousDFF
Level 3
Level 3

This is where I am attempting to resolve the issue:

LucreciousDFF_0-1624646330224.png

I simply need the correct writing of the condition which verifies that the subform is on page 1.

 

Thank you in advance...