Skip to main content

Modifier: :count

:count means different things depending on the merge tag or the kind of field:

Number of repeated items

On Repeater fields.

Returns immediately with the item count; every other repeater modifier is ignored alongside it.

ProductGravity Forms
RequiresGravity Forms 3.0.0 or later
Works onRepeater fields
In the pickerWhat to show

Where the merge tag picker offers it

Form fields: Repeater.

Count

On Number, Product, Total, Calculation fields.

The number of entries processed.

ProductGravityMath
RequiresGravityMath 1.0 or later
Works onNumber, Product, Total, Calculation fields
In the pickerWhat to show

Examples

Rendered by real Gravity Forms and GravityKit PHP against a test entry.

Merge tagOutputWithout the modifier
{Amount:8:count}1,234.56$1,234.56

Where the merge tag picker offers it

Form fields: Number · Calculation · Product · Total.