Show or hide InDesign layers based on your data

Showing or hiding InDesign layers from data

You want to show or hide InDesign layers per record – a different badge, a seasonal banner, an optional disclaimer – driven by your data.

Before you start

  • The layers you need, created and tested in your InDesign document.
  • Your data loaded.

Step 1 – Create your layers in InDesign

In your InDesign document, create and test the layers you want to switch – for example a badge layer, a seasonal banner, an optional disclaimer.

📷 Screenshot [NEU]: the InDesign Layers panel with the layers you want to control

Step 2 – Open the Layer visibility workspace

In DataMergeStudio, go to Editor → Layer visibility. This opens a workspace with a central Layer visibility node.

📷 Screenshot [NEU]: the Layer visibility workspace with the central Layer visibility node

Step 3 – Add a Layer node and choose the layers

Add a Layer node. In its Layer mode, activate one or more of the layers from your InDesign layout. Connect the Layer node’s Layer output socket to the Layer input socket of the central Layer visibility node – this transmits the selected layers.

📷 Screenshot [NEU]: a Layer node (layers selected) connected to the Layer visibility node

Step 4 – Drive the layers from your data

The Layer node also has a data input socket that works as a trigger. Connect it to a data node or a condition node: the selected layers are transmitted only when data flows through it. That’s how you decide which layers are visible for which records – for example, show a "VIP" layer only when a condition is true.

📷 Screenshot [NEU]: the Layer node’s data input connected to a data or condition node

Step 5 – Export in Individual mode (Set size 1)

A layer setting in InDesign applies to the whole document, so layer control works only in Individual mode with Set size 1 – one document per record. Open Export → Merge Mode, select Individual, and keep Set size at 1.

The Export Merge Mode panel with Individual selected and Set size 1

Step 6 – Preview and validate

Open the Preview (the eye icon, top right) to check the result, then click Validate all records (the button in the bottom-right corner of the workspace).

Opening the preview with the eye icon

Validation result across all records

Result

The same layout adapts itself record by record, showing only the layers each one needs.

Not found what you're looking for?

How-To Guides · Last updated 1 month ago

Copyright ToolboxCode UG