Entry count. Works only inside a GravityMath formula, in the [gvmath] shortcode.
On the test entry, {entry_count} gives 2.
| 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 empty to use the shortcode's scope. |
Values for Scope
| Value | Description |
|---|
visible | Entries visible on this page |
view | Entries in this View |
form | All entries in the form |
Examples
Output from the real plugin code, run on a test entry.
| Merge tag | Output |
|---|
{entry_count} | 2 |
{entry_count:visible} | 0 |
{entry_count:view} | 0 |
{entry_count:form} | 2 |
[gvmath scope="form" id="501"]{entry_count}[/gvmath] | 2[/gvmath] |