Use this filter to dynamically change field labels in the Core and Universal PDF templates.
This filter was introduced in Gravity PDF 4.2.
$label | string
- The current label to be displayed in the PDF
$field | array
- The current field being processed
$entry | array
- The Gravity Forms entry array
The following code will display a field's admin label if it exists, otherwise fall back to the standard label:
You can also target specific field types:
Or an individual field:
This filter is located in the
Helper_Abstract_Fields.php files in the