Keep up to date with Gravity PDF

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

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.

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 ) {

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

    return $value;

}, 10, 3 );

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