gotrgf_summary_total [JS]

Updated 14 September 2026

On this page

Description

Changes the total as it is shown in the summary, for example to add a note or to show it in another currency format.

Parameters

formattedTotal | String. The total with currency formatting

rawTotal | Number. The total as a number

formId | Int

type | String. ‘side’ or the field ID of a Live Summary field

Return

String

Usage

Copy the below code to a HTML field inside your form (wrapped in script tags) or use the Code chest plugin.

<script type="text/javascript">
if ( typeof gform !== "undefined" ) {
    gform.addFilter( 'gotrgf_summary_total', function( formattedTotal, rawTotal, formId, type ) {
        return formattedTotal + ' <small>incl. VAT</small>';
    } );
}
</script>

Since

version 1.1.9

Didn’t find what you were looking for?

Or contact support and I will help you out.

Scroll to Top