Tables & data
Show content only when the data matches
Not every record needs every line: a discount line means nothing on an order without a discount. A condition about your data lets content print only for the records it fits. When the condition fails, the content prints nothing and leaves no gap.
There are three places to put a condition:
| Where | Use it to |
|---|---|
| Show only when a condition is met, on any element | Hide one element and everything inside it |
| A Conditional element | Hide a group of blocks that share one condition |
| Show cell only when a condition is met, on a table column | Blank that column's cell on the rows where the condition fails |
Before you start
- In the hosted app, changing a template needs the editor role or higher; local mode has no roles.
- Work in the Flow view; the Paged view is read-only. Have data loaded: the sample data a document starts with is enough.
- Open the properties panel: select the element, then press ⌘. (Ctrl+. on Windows) or the panel button at the far right of the app bar (tooltip Show properties panel).
How the condition editor works
A condition is a small tree of parts, each with a menu that sets its kind.
| Part | What it does |
|---|---|
| Field | A value from your data, entered as a path such as record.Status |
| Fixed value | A value you type, set to Text, Number, True / False or Empty |
| Comparison | Compares two parts with =, ≠, >, ≥, < or ≤ |
| And / Or | and needs every condition listed, or needs any. + Add condition adds one; ✕ removes one |
| Not | Holds when the condition inside it does not |
| Calculation | Adds, subtracts, multiplies or divides two parts, such as quantity × unit price |
A new condition starts as a Comparison: a stand-in Field ≠ an empty Fixed value. The stand-in is not a field in your data, and a missing field is not empty text, so the condition holds and the element stays on the canvas while you choose the field and the rule you mean. Until you change it, the element shows even when the field you choose is missing.
If a path leads nowhere in the loaded data, a warning appears under it ending "check for a typo", sometimes with a button reading Use followed by a likely path. On a saved template in the hosted app with a data source, the Field part can be a searchable list of that source's fields instead of a box to type in; pick the field from it.
Show a line only when there is a discount
- Select the discount paragraph and open the properties panel.
- In the Conditional section, tick Show only when a condition is met.
- In the Field part, replace the path with your discount field, such as
record.DiscountPercent, and press Enter. - Change = to >.
- Set the Fixed value type to Number and enter 0.
The line above the editor now reads "Shown when Discount Percent is greater than 0." Records with no discount, or no discount field at all, print nothing there. Untick the box to remove the condition.

The setting covers the element and everything inside it, such as a Section's title and blocks or
a Table's header row. On a block inside a Repeat it is checked for each item, so it can test
fields such as item.Quantity; on the Repeat itself it is checked once, outside the list.
Hide a section when its list is empty
- Select the Section, by its title on the canvas or its row in the Outline.
- Tick Show only when a condition is met.
- Change the top part's menu from Comparison to Field, and enter the list's path, such
as
record.LineItems.
A Field on its own fails when the value is missing, empty, zero, false, or a list with no items, so the Section now prints only when there is at least one line item.
Hide several blocks with one condition
Choose Conditional under Logic & Layout in the Add block menu, put the blocks inside it, and build its Condition in the same editor. Unlike the setting above, a new Conditional's condition holds until you change it, and the line above its editor reads "Show when …" rather than "Shown when …". See Conditional element.
Blank a table cell on some rows
- Select the table and open the column's card with its ▸ caret.
- Open Conditional formatting and tick Show cell only when a condition is met.
- Build a condition about the row, using the table's Binding name (
itemunless changed), such asitem.Discount> 0.
Until the condition is finished, every cell in the column prints empty. Where the finished condition fails, that cell prints empty while the rest of the row prints, so the columns stay aligned.
Test it against your data

- Switch the sample. The data pill above the document (the button that names the data you are previewing, such as Full quote) has a Preview shape section. In the document Weft opens with, Empty line items has no line items and no discount, so both examples above disappear; the Sales Quote starter offers With discount and No discount. In the hosted app, choose a data source under Render source in the same menu and press Use live data to preview real records.
- See what is hidden. In the Flow view, tick Show hidden blocks in the same menu. Each hidden element shows as a dimmed placeholder such as "Hidden paragraph · why?". These placeholders never print.
- Ask why. Click a placeholder to open Why this is hidden: the condition with this record's values, each part marked ✓ or ✗. Scan records tests your sample shapes (or, in the hosted app with a data source chosen under Render source, a live sample of its records) and lists those that would show the element; click one to preview it.
Show hidden blocks does not reveal blocks hidden inside a Repeat, blocks a Conditional element holds back, or blanked table cells.
Good to know
- = and ≠ compare exactly, type included: a Number 5 does not equal a Text 5, and Overdue does not equal overdue.
- >, ≥, < and ≤ do not hold when either side is missing. A missing field counts as Empty.
- A mistyped path in a condition is flagged This condition won't resolve on the canvas and in the check before export; until it is fixed, the condition treats the field as missing.
What next
- Change the look instead of hiding → Conditional formatting
- Use arithmetic in a condition → Formulas
- Catch blank output before it ships → Check before export