Conditional sections
On the PDF Template page, each section has a Condition field:
Conditions control when a section is displayed. The condition must be met before the section is included in a document based on the PDF Template.
- Conditions can include formulas.
- Conditions can operate across objects. For example, if you are using a PDF Template from the Team Member object, you can use Condition to evaluate a field on the Employment Record object. Follow the rules for using Merge Fields.
- By default, Condition is blank. A blank Condition means that the section is always included in documents based on the template.
- You do not need to include a Condition to exclude a section if the field or fields it uses contain no data - sections with no data are automatically excluded from the PDF document.
Example |
PDF Template Setup When used from Team Member records... |
Result |
---|---|---|
Your organization uses multiple employment contracts, matching a contract to the level of benefits available to each grade of employee. |
|
Documents based on the template include only those sections relevant to each grade. The example condition includes the section when the Team Member's Grade is B. |
Compensation award letters contain sections relating to base salary, bonus, and commission. Letters are sent with just the relevant sections included. |
|
Documents based on the template include only those sections relevant to each Team Member. |