Use this filter to dynamically change the name of your saved PDF file. This is useful if you cannot accomplish the filename you want using Gravity Forms merge tags alone, or if you need to conditionally change the filename based on a user's response.
$name | string
- The current PDF filename
$form | array
- The current Gravity Forms array
$entry | array
- The raw Gravity Forms Entry array.
$settings | array
- The current PDF settings being processed
This snippet will change the PDF name using a custom date format:
You might also like to dynamically change the PDF name based on a response the user provided:
This filter is located in the
Model_PDF::get_pdf_name() method of