Fluent Forms - The Fastest WordPress Form Builder
Fluent Forms - The Fastest WordPress Form Builder Original price was: Rs24,518.00.Current price is: Rs410.00. for 1 year
Back to products
Basic Membership
Basic Membership Rs820.00 for 1 month

Gravity Forms Advanced Calculations | Gravity Perks by Gravity Wiz

tick Recently UpdatedΒ  tick Well Documented

Advanced Calculations completely revamps calculations in Gravity Forms. Not only does it empower you with advanced mathematical functions and conditionals, it improves the formula editing experience with a powerful new editor, complete with syntax highlighting, autocompletion, shorthand field references, and so much more!

Original price was: Rs4,838.00.Current price is: Rs410.00. for 1 year

  • 100% Original ProductΒ and Virus Free.
  • Regular Update.Β 
Payments Method elements keys
1 Item sold in last 24 hours
Last Update Date: December 1, 2023

Description

Gravity Forms Advanced Calculations

Perform advanced calculations with mathematical functions, conditionals, and a powerful formula editor.

Gravity Forms Advanced Calculations | Gravity Perks by Gravity Wiz

What does it do?

Advanced Calculations completely revamps calculations in Gravity Forms. Not only does it empower you with advanced mathematical functions and conditionals, it improves the formula editing experience with a powerful new editor, complete with syntax highlighting, autocompletion, shorthand field references, and so much more!

With Advanced Calculations you can create:

  • Mortgage calculators
  • Advanced calculated products
  • Auto loan calculators
  • Investment/Retirement calculators
  • BMI calculators
  • And many more!

Features

  • Heaps of mathematical functions.
    Spreadsheet style math directly in your form.
  • Conditional statements.
    Specify multiple formulas in the same field; use the right one based on your conditions.
  • Formula shorthand.
    Simplify your formulas with our field reference shorthand. No more cumbersome merge tags!
  • Syntax highlighting.
    Clarify your complex formulas and spot issues quickly with automatic syntax highlighting.
  • Secure, tamperproof calculations.
    All calculations are recalculated on submission for accuracy and security.
  • Seamless integration.
    Automatically enhances all calculation-enabled fields like Number and Calculated Product fields.
  • Automatic updates.
    Get updates and the latest features right in your dashboard.
  • Legendary support.
    We’re here to help!Β And we mean it.

Documentation

  1. How do I enable this functionality?
  2. Feature Details
    1. Merge Tag Shorthand
    2. Conditional Statements
      1. if/else
      2. if/elseif/else
    3. Syntax Highlighting
    4. Tooltips
    5. Functions
      1. Absolute Value – abs
      2. Average – average
      3. Ceiling – ceil
      4. Exponential – exp
      5. Floor – floor
      6. Future Value – fv
      7. Natural Logarithm – ln
      8. Logarithm – log
      9. Maximum – max
      10. Minimum – min
      11. Pi – pi
      12. Round – round
      13. Square Root – sqrt
  3. Known Limitations
  4. Integrations
    1. Invoicing Templates by Gravity PDF
  5. Translations
  6. FAQs
  7. Hooks

How do I enable this functionality?

After installing and activating Gravity Forms Advanced Calculations,

Gravity Forms Advanced Calculations | Gravity Perks by Gravity Wiz Add a Number field to your form.
Gravity Forms Advanced Calculations | Gravity Perks by Gravity Wiz CheckΒ Enable Calculation.
Gravity Forms Advanced Calculations | Gravity Perks by Gravity Wiz Insert advanced calculations into form. Use theΒ Formula CheatsheetΒ for a primer on calculations.

Feature Details

Merge Tag Shorthand

The true power ofΒ calculations with Gravity FormsΒ comes from being able to reference other fields to create calculations from what users have entered. Gravity Forms uses merge tags to reference fields. Merge tags are referenced using the field ID, with or without the descriptor, such asΒ {Field A:1}Β orΒ {:1}.

Gravity Forms Advanced Calculations adds shorthand for fields to clean up your calculations and make it easier to keep track of everything. The shorthand for the same field shown above is written asΒ F1.

Shorthand offers more readable calculations, especially for complicated functions.

Gravity Forms Advanced Calculations | Gravity Perks by Gravity Wiz

Conditional Statements

Advanced Calculations supports conditional statements such as if/else and if/elseif/else. Use these statements to evaluate calculations based on field values.

if/else

 

if( F1 > 1.25 && F1 < 5.5 ):
	F1 * 50
else:
	0
endif;

 

if/elseif/else

 

if( F1 < 5.5 ):
	F1 * 50
elseif( F1 >= 10 ):
	F1 * 25
else:
	0
endif;

 

You may use as manyΒ elseifΒ statements as needed. You are not limited to one.
Supported Operators

The following comparison operators are supported:

  • ==Β Equal to
  • !=Β Not equal to
  • >Β Greater than
  • <Β Less than
  • >=Β Greater than or equal to
  • <=Β Less than or equal to
Multiple Expressions

Conditional statements support multiple expressions within a single condition via the theΒ &&Β (and) or theΒ ||Β (or) operators.

To require both expressions to be true for the condition to match, you would use theΒ &&Β operator. In this example, the condition will only be true if Field #1 is greater than 5Β andΒ less than 10.

 

if ( F1 > 5 && F1 < 10 ):

 

If you would like your condition to match if any of the conditions are true, you would use theΒ ||Β operator. In this example, the condition will return true if Field #1 is greater than 5Β orΒ if Field #2 is greater than 5.

 

if ( F1 > 5 || F2 > 5 ):

 

While these examples are simple, this functionality is quite robust and can handle conditions that contain expressions with bothΒ &&Β andΒ ||Β operators.

Syntax Highlighting

Advanced Calculations adds syntax highlighting and autocompletion to the calculation text area. Syntax highlighting drastically improves the readability of calculations, especially complicated ones that use conditional statements and functions.

Gravity Forms Advanced Calculations | Gravity Perks by Gravity Wiz

Autocompletion aids you when inputting a function or conditional statement. When you start typing any supported function, the editor will suggest a completion. Click the suggested function (or hit return) to insert the full function with placeholder values.

Gravity Forms Advanced Calculations | Gravity Perks by Gravity Wiz

The editor also automatically closes parentheses and merge tag braces. Say goodbye to invalid formulas because of an errant parenthesis!

Tooltips

When hovering over shorthand field variables and merge tag field variables with no descriptor in the formula editor, you will see a tooltip displaying the field’s label.

Gravity Forms Advanced Calculations | Gravity Perks by Gravity Wiz

Functions

Advanced Calculations adds support for common functions to both save you time and effort and provide more accurate results.

Absolute Value – abs

Returns the absolute value of a number.

Show Details

Average – average

Returns the average value of the arguments given.

Show Details

Ceiling – ceil

Rounds a number up to the next largest integer.

Show Details

Exponential – exp

Returns e^x, where e is Euler’s number (~2.718) and x is the provided value.

Show Details

Floor – floor

Rounds a number down to the nearest integer.

Show Details

Future Value – fv

fvΒ calculates the future value of an investment based on constant-amount periodic payments and a constant interest rate.

Show Details

Natural Logarithm – ln

lnΒ returns the logarithm of a number, base e. e is Euler’s number (~2.718).

Show Details

Logarithm – log

logΒ returns the logarithm of a number, base 10.

Show Details

Maximum – max

maxΒ returns the largest value in the list of arguments.

Show Details

Minimum – min

minΒ returns the smallest value in the list of arguments.

Show Details

Pi – pi

piΒ returns the value of pi to 20 decimal places.

Show Details

Round – round

roundΒ rounds a number to the nearest integer.

Show Details

Square Root – sqrt

sqrtΒ returns the square root of a number.

Show Details


Known Limitations

  • Non-numeric values are not supported in conditional statements.

Integrations

Invoicing Templates by Gravity PDF

GP Advanced Calculations integrates with Gravity PDF’s Invoicing 2.0+ templates. These templates allow for business-ready invoice generation from Gravity Forms submissions. They’re highly customizable, translatable, support conditional logic, and are GST/VAT compatible. This integration allows for GP Advanced Calculations’ mathematical functions and formulas to be leveraged while working with Gravity PDF’s Invoicing templates.

There’s a variety of sleek templates to choose from and all templates integrate withΒ GP eCommerce Fields,Β GP Inventory,Β GP Conditional Pricing,Β GP Unique ID, andΒ GP Price Range. Learn more about Gravity PDF’s invoicing templatesΒ here.

Translations

You can use the freeΒ Loco Translate pluginΒ to create translations for any of our Perks. If you’ve never used Loco translate before, here’sΒ a tutorial written for beginners.

FAQs

No FAQs yet.Β What do you want to know?

Hooks

Gravity Forms has hundreds of hooks. Check out ourΒ Gravity Forms Hook ReferenceΒ for the most thorough guide to Gravity Forms’ many actions and filters.

Latest Release

Fluent Forms – The Fastest WordPress Form Builder

Original price was: Rs24,518.00.Current price is: Rs410.00. for 1 year

WizeStore – Multipurpose WooCommerce Shop WordPress

Original price was: Rs4,838.00.Current price is: Rs410.00. for 1 year

Chelsey – Portfolio Theme for Freelancers and Agencies

Original price was: Rs6,478.00.Current price is: Rs410.00. for 1 year

Minimo – Portfolio & Agency WordPress Theme

Original price was: Rs5,248.00.Current price is: Rs410.00. for 1 year

Customer Reviews