Merge Tags & Notifications
Merge Tags
Each repeater group gets a custom merge tag:
{gfr_rows:groupname}
Output Format
Generates an HTML table with all rows (including Row 0). Field labels as column headers, inline styles for email compatibility.
| Name | Role | |
|---|---|---|
| Alice | alice@example.com | Developer |
| Bob | bob@example.com | Designer |
Email Notifications
Extra rows are automatically appended to all email notifications:
--- TEAM_MEMBERS — ADDITIONAL ROWS ---
Row 1: Name: Bob, Email: bob@example.com
Row 2: Name: Carol, Email: carol@example.com
For custom formatting, use the merge tag directly in the notification body.
Confirmations
Merge tags work in:
- Confirmation messages (on-screen)
- Confirmation redirects (query parameters)
Row Calculations [Pro]
Aggregation modifiers for GF calculation fields:
{Field Label:5:sum} // Sum across all rows
{Field Label:5:avg} // Average
{Field Label:5:count} // Number of rows
{Field Label:5:min} // Minimum value
{Field Label:5:max} // Maximum value
These work both client-side (live updates) and server-side (on submission). The JS module uses GF’s gform_merge_tag_value_pre_calculation filter to intercept and aggregate values.
Example
An order form with repeater fields: Quantity (ID: 5) and Unit Price (ID: 6).
In a calculation field outside the repeater:
{Quantity:5:sum} * {Unit Price:6:sum}
This sums all quantities and all prices across every row.