Loading
Salesforce now sends email only from verified domains. Read More
Omnistudio Document Generation
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Page Break Behavior with Conditional and Repeating Tokens in Omnistudio Document Generation

          Page Break Behavior with Conditional and Repeating Tokens in Omnistudio Document Generation

          Guidelines to prevent blank pages and layout issues when adding page breaks to document templates that include conditional or repeating tokens.

          Required Editions

          Available in: Lightning Experience
          Available in: Professional, Enterprise, Unlimited, and Developer Editions

          Page Break Placement Guidelines

          Page break behavior depends on where the break appears relative to token boundaries.

          • Placing a page break before the start of a conditional or repeating token can insert a blank page when the condition evaluates to false.
          • Placing a page break after the end of a conditional or repeating token can also create a blank page if no content renders.
          • Placing page breaks between sections or conditions avoids unintended blank pages and preserves document flow.
          Note
          Note When optional or repeatable content requires a new page, place the page break between sections rather than directly next to token start or end markers.

          Token Spacing Guidelines

          Blank pages can occur when multiple conditional tokens appear consecutively with empty lines or spaces between them. The document generation engine can interpret the empty space as content, which results in an unintended blank page.

          • Remove empty lines or paragraph breaks between adjacent conditional tokens.
          • Keep conditional token blocks closely grouped.
          Example
          Example

          Token format that can result in a blank page:

          • {{IF_token1}}
          • {{/IF_token1}}
          • {{IF_token2}}
          • {{/IF_token2}}
          Example
          Example

          Recommended token format without spacing:

          • {{IF_token1}}

          • {{/IF_token1}} {{IF_token2}}

          • {{/IF_token2}}

           
          Loading
          Salesforce Help | Article