Modifier: :count
:count means different things depending on the merge tag or the kind of field:
- Number of repeated items on Repeater fields
- Count on Number, Product, Total, Calculation fields
Number of repeated items
On Repeater fields.
Returns immediately with the item count; every other repeater modifier is ignored alongside it.
| Product | Gravity Forms |
|---|---|
| Requires | Gravity Forms 3.0.0 or later |
| Works on | Repeater fields |
| In the picker | What to show |
Where the merge tag picker offers it
Form fields: Repeater.
Count
On Number, Product, Total, Calculation fields.
The number of entries processed.
| Product | GravityMath |
|---|---|
| Requires | GravityMath 1.0 or later |
| Works on | Number, Product, Total, Calculation fields |
| In the picker | What to show |
Examples
Rendered by real Gravity Forms and GravityKit PHP against a test entry.
| Merge tag | Output | Without the modifier |
|---|---|---|
{Amount:8:count} | 1,234.56 | $1,234.56 |
Where the merge tag picker offers it
Form fields: Number · Calculation · Product · Total.