The PDF Generator for Bricks Form is a custom form action that allows you to generate PDF documents from submitted form data using PDF templates. This functionality integrates directly within the Bricks builder and leverages a dedicated post type for PDF templates.
Settings
When configuring a Bricks Form element, add the PDF Generator action to the list of form actions. This reveals a dedicated group of settings under the Content tab:
PDF Template: A dropdown menu that lists all published PDF templates. This is a required field.
PDF Filename: Define the output filename of the generated PDF. Dynamic Shortcodes and form field shortcodes (e.g.,
{form:field_id}
) are supported.Save Mode: Choose between:
Save as Media Library item
: Uploads the generated PDF to the WordPress Media Library.Save to uploads directory
: Saves the PDF to a specified folder within theuploads
directory.
Directory Path (visible only for uploads mode): The relative path inside the
uploads
folder. Accepts Dynamic Shortcodes and form field values.Attach to Email: If enabled, the generated PDF will be attached to the email action of the same form.
When enabling "Attach to Email", ensure that the PDF Generator action is placed before the Email action in the form action list.
Usage Summary
Create a PDF Template in the dashboard.
Add a Form element in Bricks and configure form fields as needed.
Add the PDF Generator action and configure its settings.
Optionally, add an Email action and ensure it comes after the PDF Generator if you plan to attach the PDF.
Submit the form to generate the PDF. Depending on settings, the file will be saved in the Media Library or in the specified uploads subdirectory.