Loading...

Repeat an array with normal section

A normal section in CraftMyPDF is designed to work with array-type data in JSON data.

To enable data-binding for a section, select a normal section and in the Data binding selection, check on Enabled and use an expression to bind the JSON array to the Data Source.

In a data-bound section, you can access the data row by using the following expression:

{{ row.[field] }}

Find out more at tutorial: How to Create an Invoice PDF by Using a Data-bound Normal Section to Repeat an Array