gfpdf_pdf_field_content
Jump To Section
Description
Use this filter to dynamically change a field's value in Core and Universal templates before it gets wrapped in the final HTML markup. In the majority of cases this filter will be more useful than gfpdf_field_html_value
. Be aware, section fields, page fields and the product table are not run through this filter.
Version
This filter was introduced in Gravity PDF 4.2.
Parameters
$value | string : The field's content to be included in the PDF
$field | array : The current field being processed
$entry | array : The Gravity Forms entry array
$form | array : The Gravity Forms array
$pdf_field | object
: The current field helper class. See /src/helper/fields
Usage
The following code will prefix all values with a bullet point:
You can also target specific field types:
Or an individual field, targeted by ID:
Display each sub-field in an address field on a new line:
Source Code
This filter is located in the Helper_Abstract_Fields.php
files in the /src/helper/abstract/
directory.