Conditional Sections

Show or hide parts of your document based on field values. Create dynamic templates that adapt to your data.


Overview

Conditional sections let you create one template that works for multiple scenarios:

  • Show payment terms only for unpaid invoices
  • Display discount info only when a discount exists
  • Include specific clauses based on contract type
  • Show different content for different customer types

Instead of maintaining multiple templates, you have one smart template that adapts.


Template Setup

Step 1: Identify Conditional Content

Decide which parts of your document should be conditional.

Step 2: Wrap with Section Tags

In your Google Doc, wrap the conditional content with opening and closing tags:

{{section_discount}}
Discount Applied: {{Discount Amount}}
Thank you for being a valued customer!
{{/section_discount}}

Syntax

TagPurpose
{{section_name}}Start of conditional section
{{/section_name}}End of conditional section

Replace name with a unique identifier (no spaces, use underscores).

Example Template

INVOICE #{{Invoice Number}}

Customer: {{Customer Name}}
Total: {{Total Amount}}

{{section_discount}}
---
DISCOUNT APPLIED
Amount: {{Discount Amount}}
{{/section_discount}}

{{section_notes}}
---
NOTES
{{Notes}}
{{/section_notes}}

Thank you for your business!

TypeFlow Configuration

After mapping your fields, TypeFlow will detect your conditional sections.

Step 1: Find Conditional Sections

In TypeFlow, scroll to the Conditional Sections area.

Step 2: Set Conditions

For each section, configure:

SettingDescription
FieldWhich Airtable field to check
ConditionThe comparison (equals, not empty, contains, etc.)
ValueThe value to compare against (if applicable)

Common Conditions

ConditionShows Section When
Is not emptyField has any value
Is emptyField has no value
EqualsField matches exact value
ContainsField includes the text
Greater thanNumber is above threshold

Numeric Conditions

Conditional sections work with numeric fields - currency, percent, number, formula, rollup, count, and autoNumber.

TypeFlow compares the raw value, not the formatted text. So whether your field displays $1,000.50 or 1 000,50 €, the comparison works the same way.

Operators

ConditionExampleShows Section When
Equals0Amount is exactly 0
Doesn't equal0Amount is not 0
Greater than100Amount is above 100
Less than50Amount is below 50
Greater or equal1000Amount is 1,000 or more
Less or equal0Amount is 0 or negative

Percent Fields

Percent fields use the decimal value (Airtable format). For 15%, enter 0.15, not 15.

Combining Conditions

To hide a section when a field is empty OR equals 0, combine two conditions:

  1. Field is not empty
  2. Field doesn't equal 0

This is needed because an empty field is not equal to 0, so "doesn't equal 0" alone would still show the section for empty fields.


Use Cases

ScenarioCondition
Show discount sectionDiscount field is not empty
Show overdue noticeStatus equals "Overdue"
Show premium featuresPlan equals "Premium"
Show notesNotes field is not empty
Show tax infoTax Amount greater than 0

FAQ

What are conditional sections?

Conditional sections are parts of your document that only appear when specific conditions are met. For example, show a discount section only if a discount was applied.

What conditions can I use?

You can check if a field equals a value, is not empty, contains text, or use numeric comparisons (greater than, less than, greater or equal, less or equal). Numeric conditions work with currency, percent, number, formula, and rollup fields in any locale.

Can I have multiple conditional sections?

Yes. Use unique names for each section like {{section_discount}}, {{section_notes}}, {{section_terms}}.

Can I nest conditional sections?

Currently, conditional sections cannot be nested inside each other. Each section should be independent.



Need More Help?

Was this page helpful?