Add-on: Count
Count is a free Gravity Forms add-on that counts entries, or adds up a Number field across entries, and shows the result on any page with the gravitywp_count shortcode. Use it for counters such as “125 people registered”, remaining places or a running total of donations.
[gravitywp_count formid="2"]
[gravitywp_count formid="2" number_field="4"]
The first shortcode shows the number of entries in form 2. The second shows the total of Number field 4 across those entries.
What you can do with Count
- Filter on field values with up to five filters, and choose whether all or any must match.
- Count entries between two dates, also with relative dates like
-1 week. - Count only the entries of the logged-in user, or only read, starred or approved entries.
- Count the entries at a Gravity Flow step.
- Count several forms together, or all entries on your site.
- Multiply the result, add a number, and set the decimals and separators.
Where to start
Start with Shortcode gravitywp_count: it lists every attribute with examples. The pages below cover one filter or integration each.
Requirements
- Gravity Forms
- Optional: GravityView, for counting approved or unapproved entries
- Optional: Gravity Flow, for filtering on workflow steps
Count is free. Download it from the Count product page.
Counting multiple forms
Count entries of the total of the number field for multiple forms.
Output format filter
Information about the filter hook ‘gwp_count_result’.
Poll Field
Documentation about counting a Gravity Forms Poll Field.
Product filter
To filter on Product Fields, we advice you to use ‘contains’ as a filter_operator.
Relative date filter
Use relative dates to filter the count result in between start_date and end_date
Shortcode gravitywp_count
How to use the shortcode (simple version, counting number fields of multiple entries, filters).
Support Entry Approval
How to filter with GravityView approved entries.
Support Gravity Flow
Gravity Flow is also supported in filtering the results of the GravityWP – Count shortcode.