Starting each cell of a repeating group on a new page
PDF Potion allows you to automatically start each cell of a repeating group on a new page.
For example, the below Bubble app contains a repeating group that has two cells.
This is how it looks in the editor:
By default, the two cells are on the same page when a PDF is generated:
To start each cell of a repeating group on a new page, follow these steps:
- In your Bubble editor, navigate to: Settings -> General -> Advanced Options and add the ability to 'Expose the option to add an ID attribute to HTML elements'
- Add an ID attribute to the relevant repeating group
- In this example, we're adding the ID attribute 'rg-break-1' to the repeating group
- Add this ID attribute to the 'New page per cell' field of your 'Create PDF' workflow action
Now when a PDF is generated, each of the repeating group cells will start on a new page: