Math by GravityView (now officially renamed to GravityMath) is a powerful WordPress add-on by GravityKit designed to perform advanced calculations on Gravity Forms data. While Gravity Forms has built-in basic calculations, GravityMath extends this by allowing you to calculate values across multiple entries, entire forms, or even “pure math” independent of form data.
This is EXACTLY the same product as distributed by the developer. Sales Page
Key Features
-
Multi-Entry Calculations: Unlike standard Gravity Forms calculations that only work within a single entry, GravityMath can sum, average, or count values across all entries in a form.
-
[gravitymath] Shortcode: The core of the plugin. You can place this shortcode anywhere on your site (pages, posts, or View layouts) to display dynamic results.
-
Advanced Functions: Supports over 30 mathematical functions, including:
-
Basic:
sum(),avg(),count(),min(),max(). -
Advanced:
abs(),round(),ceil(),floor(),sqrt(),pow(). -
Trigonometry/Calculus:
sin(),cos(),log(),exp().
-
-
Scopes: You can define where the data comes from:
-
scope="form": Calculates data from all entries of a specific form. -
scope="entry": Calculates data from a single specific entry. -
scope="view": Calculates data only from entries currently visible in a GravityView.
-
Common Use Cases
-
Summary Reports: Displaying the total amount of donations received or the average age of survey respondents on a public-facing page.
-
Dashboards: Creating “Leaderboards” by summing scores across different users.
-
Calculators: Building complex ROI, mortgage, or shipping calculators that update in real-time.
-
GravityView Footers: Adding a “Total” row at the bottom of a table layout to show the sum of a specific column.
Example Usage
To sum up a “Donation” field (Field ID 5) from all entries in “Form ID 2“, you would use:
[gravitymath scope="form" id="2"] {Donation:5:sum} [/gravitymath]
To perform a calculation on a single entry within a GravityView “Custom Content” field:
[gravitymath scope="entry"] ({Price:10} * {Quantity:11}) + {Tax:12} [/gravitymath]
- Categories: WordPress Plugins
- Tags: GravityView
