Jump To Section
This filter can be used to programically enable or disable a PDF configured on the form. By default, Gravity PDF will check if the PDF status is active and the conditional logic is valid. This hook allows you to filter PDFs with advanced logic.
This filter was introduced in Gravity PDF 4.2.
$filtered | array : The filtered list of PDF settings
$pdfs | array : The unfiltered list of PDF settings
$entry | array : The raw Gravity Form Entry array.
$form | array : The Gravity Forms array
Use the following code to enable the form's PDFs if two sets of conditions are true (something you cannot do with standard Gravity Forms conditional logic), otherwise disable the documents:
This filter is located in the
Model_PDF::get_active_pdfs() method in