Freeform 2.6 Count
The count function allows you to return a count of submissions to Freeform filtered on various parameters. Filtering is additiive, the more fields you provide, the lower the count will be.
Parameters
{exp:freeform:count form_name="zeus" entry_date="24"} Total entries in the last 24 hours: {count} {/exp:freeform:count}
In the above example, a count for the last 24 hours of submissions to Freeform where the form name was zeus is returned.
author_id=
author_id="3"
If a member was logged at the time they submitted to Freeform, their member id would have been collected. Us this parameter to filter by a certain member.
edit_date=
edit_date="3"
When you make changes to a Freeform entry using the Freeform CP, the edit date is stored. You can filter entries by edit date using this parameter. You provide the number of hours. Freeform will show you entries that have been edited between now and that many hours.
entry_date=
entry_date="24"
You provide the number of hours. Freeform will show you entries that have been submitted between now and that many hours.
form_name=
form_name="my_form"
Filter by the form name using the 'form_name' parameter.
group_id=
group_id="3"
If a member was logged at the time they submitted to Freeform, their group id would have been collected. Us this parameter to filter by a certain group id.
ip_address=
ip_address="32.133.123.123"
Use this parameter to filter by IP address.
status=
status="closed"
Filter by the status using the 'status' parameter.
custom_field=
email="google@google.com"
You can filter by any or your custom Freeform fields. Just use the field name as the parameter and the value you're looking for as the value of the parameter.
Variables
Only one variable is available with the {exp:freeform:count} tag.
count
{count}
The 'count' variable will be replaced by the total number of entries found based on the various filters you provided through your parameters.