Loading
Salesforce Document Generation
目录
选择筛选器

          没有结果
          没有结果
          以下是一些搜索提示

          检查关键字的拼写。
          使用更普遍的搜索词。
          选择更少的筛选器,并扩大搜索范围。

          搜索所有 Salesforce 帮助
          Page Break Behavior with Conditional and Repeating Tokens in Salesforce Document Generation

          Page Break Behavior with Conditional and Repeating Tokens in Salesforce 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}}

           
          正在加载
          Salesforce Help | Article