The Blog

Gravity Forms Running Total

Desk with an iMac showing code and a web page, a second monitor with a mountain photo, and a lamp, in a dark room

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. 🙂

Aaron Reimann
» More content from:

Aaron Reimann

DNS, Mailgun, and I'm Losing My Mind

By Aaron Reimann - Oct, 01 2018

Development

Sideways8 Sponsors the WordCamp Atlanta 2018

By Aaron Reimann - Jun, 06 2018

WordPress

Three Articles For GoDaddy

By Aaron Reimann - Jun, 04 2018

Business

Related Posts