BrightLeaf Digital Code Snippet Library

Check out our growing library of code snippets for Gravity Forms!

Eleven of these snippets register their own shortcodes. Every tag and attribute is in our Gravity Forms shortcodes reference. Need a Gravity Forms or GravityView shortcode built for you? Try the free shortcode builder.

Gravity Forms Progress Meter Shortcode

Goal

Creates a visual progress meter that calculates the sum of a specific numeric field from Gravity Forms entries and displays progress toward a goal. Supports filtering by field values, date ranges, and custom multipliers.

Configuration

CSS: Style .gfpm-container, .gfpm-meter, .gfpm-fill, .gfpm-caption, .gfpm-goal CSS: Set width, colors, borders for progress bar appearance Attributes: form_id, field, and goal are required

Usage

  • Basic: [gf_progress_meter form_id="1" field="5" goal="10000"]
  • With filter (only sum entries where field 3 = "approved"): [gf_progress_meter form_id="1" field="5" goal="10000" filter_key="3" filter_value="approved"]
  • With date range: [gf_progress_meter form_id="1" field="5" goal="10000" start_date="2025-01-01" end_date="2025-12-31"]
  • With multiplier (e.g., employee matching): [gf_progress_meter form_id="1" field="5" goal="10000" multiplier="2"]
  • Custom labels: [gf_progress_meter form_id="1" field="5" goal="10000" caption_label="Raised" goal_label="Target"]

NOTES Accepts comma and dollar sign in goal attribute (auto-stripped) Date format: Use any format accepted by strtotime() Progress capped at 100% visually Only processes 'active' status entries (not spam/trash) Multiplier useful for donation matching scenarios

Install Using Code Snippets

This code is best installed directly on your site using the Code Snippets plugin.

Check Out the Code

Loading...

Code Copied!
Stay Updated On This Snippet

This entry has no reviews.

Discuss or report a problem with this snippet

Post in Snippets & Custom Code with the snippet name and a link to this page.