Entry count. The number of entries in scope. Resolved by str_replace inside a Math formula, so it works only within a [gvmath] shortcode.
| Product | GravityMath |
|---|
| Requires | GravityMath 2.0 or later |
|---|
| Needs an entry | No |
|---|
Parameters
| Name | Type | Required | Default | Description |
|---|
| Scope | one of the values | No | — | Which entries to count. Leave it empty to use the scope set on the shortcode. |
Values for Scope
| Value | Description |
|---|
visible | Entries visible on this page |
view | Entries in this View |
form | All entries in the form |
Examples
Rendered by real Gravity Forms and GravityKit PHP against a test entry.
| Merge tag | Output |
|---|
{entry_count} | 0 |
{entry_count:visible} | 0 |
{entry_count:view} | 0 |