You are viewing limited content. For full access, please sign in.

Question

Question

Page Breaks in Modern Forms 11

asked on June 24, 2022

Hello,

Is there a way to get the modern forms to respect page breaks? All of the discussions I've seen appear to be related to the classic designer, which has a switch to remove page breaks. In the modern designer this seems to be an enforced setting without the option to include the page breaks, so the PDF ends up looking like below.

I've tried adding variations on the below snippets to the CSS without any change in the PDF that's emailed in the process.

.PageBreak{page-break-after: always!important;}
.cf-page-readonly:not(.first-page){page-break-before: always !important;}

 

Thank you!

1 0

Answer

SELECTED ANSWER
replied on June 24, 2022

Yeah, the very different structure of the forms on the new designer versus the classic designer really trips things up.  I think I got it working with this CSS: 

.form-pages-container div.Page { page-break-after: always; }

 

2 0
replied on June 24, 2022

That was it, thank you!

1 0
replied on June 24, 2022

Glad it worked.

0 0
replied on August 7, 2023

@████████ - How did you make that work using .form-pages-container div.Page { page-break-after: always; }? 

I finally got 1 page break in the right place with that but it cauised another pagebreak to occur at the bottm of page 2 creating a whole new page 3 and 4 with no rhym or reason.

After a week of struggling I am about to give up and just go the PDF merge route in a workflow. More work to edit the PDF's in the future with changes, but this page break thing is a deal breaker on my current form that HAS to break in an exact spot, and is short enough to fit on 2 pages and now is spanning over 4.

 

0 0
replied on August 8, 2023

@████████ - I ended up not keeping the setting, primarily for that reason. That CSS code should cause the PDF page breaks to occur at the LF Form page breaks. If I have a paginated form with four pages, then the PDF will have at least four pages, even if they're only half-filled. The PDF will have more if any of the pages extend beyond the printed page size.

Could you try the above CSS and use the class or field where you want a page break instead of the page container?

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.