Summary Mergetag

Updated 14 September 2026

What is it?

Every summary in your form can be included in the notifications and confirmations pages with the new mergetag {live_summary} or respective field mergetags.

How to use it?

You can select the mergetags from the mergetag selector box just as any other gravity forms mergetag.

custom mergetag

What is shown?

Since v2.2 the mergetag shows the same as the summary in the form. {live_summary} follows the settings of the side summary: the selected fields in their order, the summary labels, prefixes and suffixes, the choice labels, the title, the subtotal and total with their labels, the price breakdown of the products and the nothing selected text. The mergetag of a Live Summary field follows the settings of that field instead.

Products are listed in an order table with their quantity, unit price and price. When the price breakdown shows prices, every option gets a row of its own under its product.

An HTML notification with the live summary merge tag output: a field line and the order table with products, options and the total

Modifiers

The mergetags come with different modifiers to change the output of the summary. By default and without modifier, the output will be a table. You can change this to a list by adding :list behind the mergetag. For example {live_summary:list} will output a unordered list containing only the fields selected for the side summary of your form.

Since v2.2 there is also the :text modifier for plain text without any HTML. Notifications in the text format and the text part of multipart emails get the plain text version automatically. Modifiers can be combined with a comma, for example {live_summary:list,text}.

{live_summary}           table (default)
{live_summary:list}      unordered list
{live_summary:text}      plain text
{live_summary:list,text} plain text of the list version

Changing colors

The table version of the summary uses alternating colors to indicate between label and value. These colors can easily be changed with a few lines of code. See below example. The HTML of every part of the table can be replaced with the gotrls_mergetag_template_part_{type} hook.

add_filter("gotrls_default_mergetag_styling" , function( $styles ) { 

    // example to change the background color of the field label in the table mergetag
    // Change the color code to the color you want to use
    $styles['table']['tbody']['td']['label']['background-color'] = '#CCCCCC';

    return $styles;
});

Changing labels

Changing default labels such as price, order label, etc can be done with code. See below example. The subtotal and total labels of the summary itself come from the Totals panel on the Content tab of the form settings.

<?php
// the below code translates the labels to dutch language
add_filter("gotrls_default_labels", function( $default_labels ) {
	$default_labels['price_column_head'] = "Prijs";
	$default_labels['order_section_title'] = "Mijn bestelling";
	$default_labels['subtotal_label'] = "Subtotaal";
        $default_labels['total_label'] = "Totaal";
	return $default_labels;
});

Didn’t find what you were looking for?

Or contact support and I will help you out.

Scroll to Top