Generic filters
Exact matches only
Automatic updates Yes
Version 1.1.9
Updated on
Virus Total See Report

Gravity Perks Advanced Calculations enhances your Gravity Forms with powerful calculation capabilities. Easily perform complex math operations, conditional logic, and dynamic field updates. Perfect for creating advanced pricing models, custom quotes, and more. Simplify your form calculations with this essential plugin.

How to download Gravity Perks Advanced Calculations

Unlimited Access

Subscribe for only €10.90

Or

Get this product only with unlimited updates

Already included languages : EN

We are not affiliated with Gravity Perks Advanced Calculations nor its developers or owners. Please read the full disclaimer in footer.

HOW IT WORKS

Auto updates with Club WPress plugin

Check how to install and update your WordPress plugins and themes in ONE CLICK directly from your Dashboard.

ClubWordPress Updater Plugin

Gravity Perks Advanced Calculations: A Comprehensive Guide

WordPress has revolutionized the way we build and manage websites. One of the most powerful features of WordPress is its ability to extend functionality through plugins. Among the myriad of plugins available, Gravity Forms stands out as a robust form builder. However, to truly unlock its potential, you need to look into Gravity Perks and, more specifically, the Gravity Perks Advanced Calculations plugin.

What is Gravity Perks?

Gravity Perks is a suite of add-ons for Gravity Forms, developed by the team at Gravity Wiz. These add-ons, known as “perks,” enhance the functionality of Gravity Forms, allowing you to create more sophisticated and powerful forms. With over 30 perks available, Gravity Perks offers solutions for a wide range of form-related challenges.

Introducing Gravity Perks Advanced Calculations

The Gravity Perks Advanced Calculations perk is designed to extend the calculation capabilities of Gravity Forms. While Gravity Forms already supports basic calculations, this perk takes it to the next level by introducing advanced mathematical functions and operations. This allows you to create complex calculations that can be used for a variety of purposes, from pricing calculators to custom scoring systems.

Key Features of Gravity Perks Advanced Calculations

  • Advanced Mathematical Functions: Perform complex calculations using functions such as SUM, AVG, MIN, MAX, and COUNT.
  • Conditional Logic: Apply calculations conditionally based on user input.
  • Custom JavaScript Functions: Extend the calculation capabilities even further by using custom JavaScript functions.
  • Field Merging: Merge field values dynamically into your calculations.
  • Support for Nested Forms: Perform calculations on fields within nested forms.

How to Install Gravity Perks Advanced Calculations

Before you can start using Gravity Perks Advanced Calculations, you need to have Gravity Forms and Gravity Perks installed on your WordPress site. Follow these steps to get started:

  1. Purchase and download the Gravity Perks plugin from the Gravity Wiz website.
  2. Install and activate Gravity Perks on your WordPress site.
  3. Navigate to the Gravity Perks settings page and activate the Advanced Calculations perk.

Setting Up Your First Advanced Calculation

Once you have installed and activated the Gravity Perks Advanced Calculations perk, you can start setting up your first advanced calculation. Here’s a step-by-step guide:

  1. Create a New Form: Go to the Gravity Forms menu and create a new form.
  2. Add Fields: Add the necessary fields to your form. For example, if you’re creating a pricing calculator, you might add fields for quantity, price, and discount.
  3. Enable Calculations: Select a field where you want to display the result of your calculation. In the field settings, enable the “Calculations” option.
  4. Enter Your Formula: In the calculation formula box, enter your advanced calculation. You can use field merge tags and advanced mathematical functions here.
  5. Save and Test: Save your form and test it to ensure that the calculations are working as expected.

Examples of Advanced Calculations

To give you a better understanding of what you can achieve with Gravity Perks Advanced Calculations, here are a few examples:

Example 1: Pricing Calculator

Let’s say you want to create a pricing calculator for a product. You have fields for quantity, price per unit, and discount. The total price can be calculated using the following formula:

{Quantity} * {Price Per Unit} – {Discount}

Example 2: Custom Scoring System

If you’re creating a quiz or survey, you might want to calculate a custom score based on user responses. You can use the SUM function to add up the scores of individual questions:

SUM({Question 1 Score}, {Question 2 Score}, {Question 3 Score})

Example 3: Conditional Calculations

Sometimes, you might want to perform calculations conditionally based on user input. For example, you can apply a discount only if the quantity is greater than 10:

{Quantity} > 10 ? ({Quantity} * {Price Per Unit} – {Discount}) : ({Quantity} * {Price Per Unit})

Using Custom JavaScript Functions

One of the most powerful features of Gravity Perks Advanced Calculations is the ability to use custom JavaScript functions in your calculations. This allows you to perform even more complex operations and logic. Here’s how you can do it:

  1. Define Your Function: In your theme’s JavaScript file, define the custom function you want to use. For example:

function customDiscount(quantity, pricePerUnit) {
if (quantity > 10) {
return quantity * pricePerUnit * 0.9; // 10% discount
}
return quantity * pricePerUnit;
}

  1. Use the Function in Your Calculation: In the calculation formula box, call your custom function using the gform_calculation_formula filter:

add_filter(‘gform_calculation_formula’, function($formula, $field, $form, $entry) {
return ‘customDiscount({Quantity}, {Price Per Unit})’;
}, 10, 4);

Best Practices for Using Gravity Perks Advanced Calculations

To get the most out of Gravity Perks Advanced Calculations, consider the following best practices:

  • Test Thoroughly: Always test your forms thoroughly to ensure that calculations are working as expected.
  • Use Descriptive Field Names: Use descriptive names for your form fields to make your calculations easier to understand.
  • Document Your Formulas: Keep a record of your calculation formulas for future reference and troubleshooting.
  • Leverage Conditional Logic: Use conditional logic to create dynamic and responsive forms.
  • Optimize Performance: Avoid overly complex calculations that could impact form performance.

Conclusion

Gravity Perks Advanced Calculations is a powerful tool that can significantly enhance the functionality of your Gravity Forms. Whether you’re creating pricing calculators, custom scoring systems, or any other type of advanced form, this perk provides the tools you need to perform complex calculations with ease. By following the best practices outlined in this guide, you can create sophisticated forms that meet your specific needs.

With Gravity Perks Advanced Calculations, the possibilities are endless. Start exploring its features today and take your Gravity Forms to the next level!

List of improvements in Gravity Perks Advanced Calculations version 1.1.9

    ## 1.1.9 | December 10, 2024

  • Fixed some currency-formatted values (e.g. `10,00 €`) being treated as strings in if/elseif comparisons which would prevent operators such as `<` or `>` from working as expected.
  • ## 1.1.8 | November 27, 2024

  • Added [`gpac_should_process_calculation`](https://gravitywiz.com/documentation/gpac_should_process_calculation/) JS filter hook that can be used to conditionally disable processing formulas. This can be used in snippets to increase performance of complex calculation forms.
  • ## 1.1.7 | October 30, 2024

  • Improved formula validation to mark nested if statements as invalid. They are unsupported, but would show as valid.
  • Fixed formula validation issues with modifiers in merge tags containing underscores (such as `{:1:choice_label}`).
  • ## 1.1.6 | October 23, 2024

  • Added PHP version of [`gpac_should_clean_merge_tag_value`](https://gravitywiz.com/documentation/gpac_should_clean_merge_tag_value).
  • Fixed issue where setting `gpac_should_clean_merge_tag_value` would not always ensure that non-numeric values are quoted.
  • ## 1.1.5 | October 9, 2024

  • Fixed regression concerning using product prices in formulas
  • Fixed issue with conditional logic where empty strings inside conditions could create odd results on initial load. Additionally, comparisons between numbers and non-numeric strings has been made more consistent.
  • ## 1.1.4 | September 11, 2024

  • Added support for multi-line conditionals.
  • ## 1.1.3 | August 27, 2024

  • Fixed issue where decimal comma numbers would be treated as strings in some formulas.
  • Fixed issue with unicode characters used in string comparisons.
  • Fixed issue where partially numeric values (e.g. number ranges with dash, Zip + 4, etc.) could get treated as numbers rather than strings in conditional statements.
  • ## 1.1.2 | August 14, 2024

  • Added support for new `:choice_label` modifier to explicitly get the label from a choice in a formula as Advanced Calculations will default to getting the value of the choice. `:label` is for getting the label of the field itself.
  • Refactored calculation logic to resolve regressions including the `:value` modifier not being used by default as well as addressing currency-formatted numbers being treated as strings in some cases.
  • Added `test_complex_calculations.cy.ts`
  • ## 1.1.1 | July 31, 2024

  • Fixed regression where currency values could be treated as strings resulting in incorrect calculations.
  • ## 1.1 | July 23, 2024

  • Added support for comparing strings in `if` / `elseif` statements.
  • ## 1.0.23 | June 26, 2024

  • Fixed issue where values starting with `0` could get evaluated as octals.
  • ## 1.0.22 | June 20, 2024

  • Fixed JavaScript error in the form editor if using Firefox that could cause the merge tag selector to not initialize.
  • ## 1.0.21 | May 22, 2024

  • Added new [`gpac_functions`](https://gravitywiz.com/documentation/gpac_functions) PHP and JavaScript filter hooks for adding custom functions.
  • Added trigonometric functions: `sin`, `cos`, `tan`, `asin`, `acos`, `atan`.
  • ## 1.0.20 | May 9, 2024

  • Fixed issue where Merge Tag Shorthand would not calculate when a key is pressed at consistent times on some devices.
  • ## 1.0.19

  • Fixed issue where `max()` and `min()` could calculate as `0` during submission if only given one parameter.
  • ## 1.0.18

  • Improved error handling when improper parameters are provided to functions such as `min`, `max`, etc.
  • Fixed an issue where calculations encountering division by zero would throw an error instead of returning `0`.
  • ## 1.0.17

  • Updated the “Validate Formula” override to be more robust which fixes an issue with it not after Gravity Forms 2.8.2.
  • ## 1.0.16

  • Fixed issue where Merge Tag Shorthands would use pricing field choice values instead of prices which does not match the default Gravity Forms behavior nor how it would be handled after submission. If you wish to use a pricing field choice’s value, you will need to switch from the shorthand to a full merge tag with a modifier such as `{:1:value}`.
  • ## 1.0.15

  • Fixed another issue where omitting a leading zero on a decimal would cause calculations to not work as expected.
  • ## 1.0.14

  • Fixed issue where a JavaScript error could occur if calculations are enabled for a field, but the formula is empty.
  • ## 1.0.13

...
>

Join Club WPress Now !

Get access to 15985 products for only €10,90 per month.

JOIN NOW

Reviews

  1. This tool simplifies intricate calculations significantly. Strongly recommended!
  2. Advanced Calculations by Gravity Perks has saved me countless hours. An excellent utility!
  3. The customer support is prompt and very supportive. Had a wonderful experience!

Did you know ?

You are going to buy credits for 3 items of your choice.

Once you have downloaded the 3 products, you will be then able to download their updates in the future. There is no limit of time.


Before you continue, did you know that you can download all 15985 items for only 10,90€ ?

It includes all themes, plugins and Elementor Templates listed on this site. You will also receive all updates in the future without limit of time.

See all the subscription Plans

No, I want only 3 products downloads for 6,00 €