Skip to main content

Merge tag: {entry_count}

Entry count. The number of entries in scope. Resolved by str_replace inside a Math formula, so it works only within a [gvmath] shortcode.

ProductGravityMath
RequiresGravityMath 2.0 or later
Needs an entryNo

Parameters

NameTypeRequiredDefaultDescription
Scopeone of the valuesNoWhich entries to count. Leave it empty to use the scope set on the shortcode.

Values for Scope

ValueDescription
visibleEntries visible on this page
viewEntries in this View
formAll entries in the form

Examples

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

Merge tagOutput
{entry_count}0
{entry_count:visible}0
{entry_count:view}0