gotrls_mergetag_field_value

Updated 14 September 2026

On this page

Description

Changes the value of one field in the {live_summary} merge tag and the summary field merge tags. The value comes from the get_value_entry_detail() method of the field. Return an empty string to leave the field out. The Live Summary prefix and suffix are added afterwards.

A form and field specific variant exists as well: gotrls_mergetag_field_value_FORMID_FIELDID, for example gotrls_mergetag_field_value_3_7.

Parameters

$value | String. Escaped HTML in the html format, plain text in the text format

$field | GF_Field. The field

$entry | Array. The entry

$format | String. ‘html’ or ‘text’

$form | Array. The Gravity Forms form object

Return

String

Usage

Copy the below code to the functions.php of your child theme or to your snippet plugin.

<?php
add_filter( "gotrls_mergetag_field_value", function( $value, $field, $entry, $format, $form ) {
    if ( 'email' === $field->type ) {
        return ''; // Leave email addresses out of the summary in notifications.
    }
    return $value;
}, 10, 5 );

Since

version 2.2.0

Didn’t find what you were looking for?

Or contact support and I will help you out.

Scroll to Top