Gravity Forms Running Total

The use case is pretty short and simple. Adam asked me if there is any way to come up with a total given on a specific field. For example, if there is a donation page, and people are donating money to a cause, he wanted a way to display how much has been given to the cause.

I was sure someone had a plugin that can do this but could not find it in the WordPress repository, so I wrote it. Because it is such a simple plugin, I did not add it to the WordPress repository, but it lives here on Github.

To test and use the plugin, do this:

  • Create a form in Gravity Forms
  • Create a field that is a number (integer)
  • Save the form, and fill it out a few times

Once you have some test data in the form, go to a page and drop in this code:

[gfrt id="1" field="3"]

ID is the form ID number, and the field is the field’s label (basically).

I’d love to know if anyone is actually using this shortcode besides Adam. 🙂

About the Author

Picture of Aaron Reimann

Aaron Reimann

Aaron is a PHP developer who started and sold an agency called Sideways8.com. He is currently running Clockwork, a website design, development and hosting shop. He has built sites for companies of all shapes and sizes, ranging from small nonprofits to Fortune 100 companies, since beginning his work with WordPress in 2008. An organizer for WordCamp Atlanta and the Atlanta WordPress Meetup, Aaron provides leadership and speaks regularly at events around the world.
Picture of Aaron Reimann

Aaron Reimann

Aaron is a PHP developer who started and sold an agency called Sideways8.com. He is currently running Clockwork, a website design, development and hosting shop. He has built sites for companies of all shapes and sizes, ranging from small nonprofits to Fortune 100 companies, since beginning his work with WordPress in 2008. An organizer for WordCamp Atlanta and the Atlanta WordPress Meetup, Aaron provides leadership and speaks regularly at events around the world.