Keep up to date with Gravity PDF

  • This field is for validation purposes and should be left unchanged.
Gravity PDF v4 will receive bug fixes and security updates until October 4, 2019, however it's recommended you upgrade to v5 as soon as practical.
Jump To Section

Description #description

Use this filter to non-permanently manipulate the entry information that’s provided to your PDF.

Parameters #parameters

$value | mixed
The user’s response to the current field
$field | array
The Gravity Form field currently being processed
$entry | array
The raw Gravity Form Entry array.
$form | array
The raw Gravity Form form array.
Added in Gravity PDF 4.4
$class | array
The current PDF field class (see /src/helper/fields/)
Added in Gravity PDF 4.4

Usage #usage

This snippet will show you how to target a specific field type and make changes to the user’s response:

add_action( 'gfpdf_field_value', function( $value, $field, $entry, $form, $class ) {

    /* Check for textarea fields and indent the first line */
    if( 'textarea' == $field->type ) {
        $value = '     ' . $value;
    }

    return $value;

}, 10, 5 );

Source Code #source-code

This filter is located in the Helper_Abstract_Fields::get_value() method of /src/helper/abstract/Helper_Abstract_Fields.php.

Signup for the latest Gravity PDF news, tips and updates

  • This field is for validation purposes and should be left unchanged.
Scroll To Top

Choose your currency:

Close
Converted prices are for reference only - all orders are charged in $ Australian Dollars ($) AUD.
  • AUDAustralian Dollars ($)
  • USDUS Dollars ($)
  • CADCanadian Dollars ($)
  • EUREuros (€)
  • GBPPound Sterling (£)
  • NZDNew Zealand Dollar ($)
  • JPYJapanese Yen (¥)