Skip to main content
Participant
November 29, 2021
Question

Conditional page break in repeating-section element

  • November 29, 2021
  • 0 replies
  • 291 views

I have a{% repeating-section objectname %} element inside a .docx word template which I need to ensure starts on a new page instead of breaking mid-section. Here is a sample of how it looks in the Word template:

 

{% repeating-section quotes %}

{{Name}}
{{QuoteID}}
{{morefields_etc_etc}}
Information about each quote goes here in a table, but I might have 10 quotes which are being iterated. Quote #3 gets broken across two pages in the PDF result.

I want to include a CSS tag in the word template which performs the function of:
page-break-inside: avoid;

{% end-section %}

 

I have tried{% repeating-section quotes page-break-inside: avoid; %} 

but it didnt work and the entire loop was ignored.

 

How can I get a conditional page break?

 

    This topic has been closed for replies.