Skip to content
Smart Templates Manual Website Manual for your AI

Visibility

In short

With a visibility rule, an object is printed only if a condition is met. Texts, images, codes, shapes, groups and tables have the setting. You build the condition in the “Visibility rule” window with the condition builder. The rule has no effect on the canvas; the “Full preview” shows whether the object is printed. Only a code, when it is hidden with the sample record, shows a pale pattern with “Hidden (visibility rule) — not printed” instead of an error: A hidden code is not checked, so its values may be empty. In the PDF a hidden object is missing, and directly in the document its space stays empty.

The setting in the properties

A visibility rule prints an object only under a condition, for example a discount note only if there is a discount. It has nothing to do with the rules that filter and summarize lists (see Rules).

The setting is in the “General” tab under the heading “Visibility”. For groups and tables this is the case in every position. Text, image and shapes in a group or cell have no tabs; there the setting appears without a heading of its own at the end of the list, before “Actions”. A code has the “Visibility” section at the very top everywhere, above “Content”; when you double-click a GiroCode, the button “Visibility …” at the top of the window opens it as well. Which object has the setting where, and which does not, is shown in the table under Per object.

Excerpt from the “Properties” window of an image. The heading “Visibility”; below it a checked checkbox “Turn visibility rules on/off” with ⓘ; a wide white button with an arrow symbol “↳ Edit rule”; a small gray line “Rule: Bezahlt is yes”. Below that the heading “Actions” and a wide white button with a red trash can symbol and red text “Delete block”.
The “Visibility” section of an object with a saved rule, here on the “Bezahlt” stamp of an invoice.
  1. 1Turns the rule on or off.
  2. 2Opens the “Visibility rule” window.
  3. 3The rule in words.
  4. 4The delete button is at the bottom of the “Actions” section for every object.
SettingWhat it doesDefault
“Turn visibility rules on/off” (with ⓘ) Turns the rule on or off. If a rule is already saved, it applies again; otherwise the “Visibility rule” window opens. What turning it off does differently from deleting, and what happens when you close the window without entering anything, is described under Turning off or deleting. off
“↳ Edit rule” Opens the “Visibility rule” window. It appears as soon as a rule is saved. —
Line “Rule: …” or “Rule (disabled): …” Shows the rule in words, for example “Rule: Amount greater than 100”; if you point at it with the mouse, it appears in formula notation. An expression written by hand that the condition builder cannot display appears unchanged as a formula. An empty rule appears as “empty”. —

The “Visibility rule” window

In the “Visibility rule” window you build the condition. It opens via the checkbox or via “↳ Edit rule”. The condition is checked against the printed record on the sheet, and in a cell of a data table against the row. The field picker “Choose field” shows the whole data tree, and in such a cell additionally “Per row · …”. How the condition builder works is described under The builder.

The “Visibility rule” window. At the top left the title, at the top right the buttons “Always visible” and “✓ Done” (blue). Below them the sentence “The object is only shown when this condition is met (AND/OR, can be nested).” and the condition builder with one condition: “Rechnung › Rabatt – greater than – 0”, above it the “AND | OR” switch with an info symbol, below it the buttons “Condition” and “Subgroup”.
The “Visibility rule” window with the rule “Rabatt greater than 0”.
  1. 1Says what the rule does: The object is only shown when the condition is met.
  2. 2The condition builder as everywhere; here without “ƒx”. Every entry applies immediately.
  3. 3Deletes the rule together with its condition parts and closes the window, without asking.
  4. 4Closes the window. There is no “Cancel”.

Creating a rule step by step

  1. Select the object and find the setting: in the “General” tab under “Visibility”; for text, image and shapes in a group or cell at the end of the list without a heading; for a code always at the very top. Check the box “Turn visibility rules on/off” or click “↳ Edit rule”. The “Visibility rule” window opens; via the checkbox only as long as there is no rule yet.
  2. Build the condition in the condition builder, as in the image above: field, comparison and value.
  3. Click “✓ Done”. The properties show the rule in words, for example “Rule: Rabatt greater than 0”.
  4. Check the result in the “Full preview”.

What the controls do

ControlWhat it does
Sentence at the top“The object is only shown when this condition is met (AND/OR, can be nested).”
Box “Written by hand — …”Only for a condition that the condition builder cannot display (see Conditions written by hand).
Condition builderThe condition builder as everywhere, only without “ƒx”; you compare two numbers here via a variable of your own (see Fixed value or value from the data). Every real entry applies immediately. If the condition stays empty, the object is visible.
“Always visible”At the top right. Deletes the rule (see Turning off or deleting).
“✓ Done”At the top right, blue. Closes the window and redraws. A click next to the window and the Esc key do the same; if a field picker is open, Esc closes it first.

Turning off or deleting

A rule can be turned off or deleted. That is not the same thing.

  • The checkbox only turns it off. If you uncheck it, a rule built with the condition builder stays saved, and the object is always printed again. The line in the properties then reads “Rule (disabled): …”. With the box checked, the rule applies again.
  • “Always visible” deletes. The button removes the rule together with its condition parts and closes the window, without asking. This is the only way to delete a rule from the condition builder completely.
  • Without an entry, no rule is created. Only the first entry in the condition builder creates a rule. If you check the box and close the window without entering anything, the box stays unchecked.

It is different for a rule that was not built with the condition builder, for example from an imported template: After you uncheck the box, it is gone if the condition builder cannot display it or if you have never opened the “Visibility rule” window for it. As long as the box stays checked, it keeps applying unchanged (see Conditions written by hand).

What happens in the PDF

If the rule is not met, the object is missing in the PDF. What is different for individual objects, for example for groups and for the header and footer, is described under Per object.

  • Directly in the document, the space of the hidden object stays empty. In a table cell the row can become shorter as a result.
  • If a sheet contains only hidden items, the sheet is not printed. A sheet that is already empty on the canvas, for example via “Add page”, is kept (see Appending blank pages and removing pages).

Per object

The table shows where the setting is located for which object and what is different there.

ObjectWhere the setting isWhat is different there
Text, image, codes and shapes Directly in the document in the “General” tab under “Visibility”. In a group or cell at the end of the list without a heading of its own, before “Actions”. For a code, the “Visibility” section is at the very top everywhere, above “Content”. An image in a grid cell does not have the section (see Images: Position, size and behavior of the image). You hide a GiroCode here where no transfer should be printed, for example on a credit note; a hidden code is not checked, and its fields may then be empty (see Barcode, QR code and GiroCode: What is checked).
Group In the “General” tab under “Visibility”, in every position. A hidden group is missing together with its content.
Header and footer As with every group, in the “General” tab. If the rule is not met, the row is missing on all pages and does not reserve any space either (see Header and footer: The settings field by field).
Data table In the “General” tab under “Visibility”, in every position (see Data tables: Border, corners, guides, visibility). The table’s rule is checked against the level on which the table stands, not against its own rows. This is how you print a line-items table only if there are line items, for example. The details are described under Conditions in a table cell.
Object in a cell of a data table As for text, image, codes and shapes in a group or cell. The rule applies to each row individually and does not find simple fields of the document. The details are described under Conditions in a table cell.
Free-form table As for the data table. A free-form table has no data rows; the rule in a cell is checked against the level on which the table stands (see Conditions in a table cell).
Cell of a free-form table In the “Visibility” section of the cell’s settings (see Cells, header row and page break: Background, border and size of a cell). If the rule is not met, the content of the cell is missing; row and column stay in place. Check in the “Full preview” whether the background and border of the cell disappear with the content.
Grid from older templates None on the sheet. In a group or cell among the settings at the end of the list, before “🗑 Delete element”. For a grid on the sheet, visibility cannot be set (see Free-form tables: Grid from older templates).
Page break None. A page break has no visibility (see Page break).

What changes in the document?

On the canvas

Visibility rules have no effect. The object is always visible, and no sign shows that it has a rule. The “Full preview” shows whether it is printed. One exception is a code: if it is hidden with the sample record, a pale pattern with “Hidden (visibility rule) — not printed” appears instead of an error.

In the PDF

A hidden object is missing. How this affects space, table rows and sheets is described under What happens in the PDF.