Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

Conditional page break in repeating-section element

Community Beginner ,
Nov 28, 2021 Nov 28, 2021

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?

 

236
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Resources