🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Home Add-ons Logic & Math Pro Premium
Premium Integration

Gravity Forms
+ Logic & Math Pro Premium

Formula functions for Gravity Forms calculations plus AND / OR rule sets, date, pattern and field-to-field rules in conditional logic, live and on the server.

User User User User
+2k
4.9/5
Trusted by 2,000+ Agencies
Logic & Math Pro Premium

Watch it in action

Gravity Forms Calculations with if(), Dates & Discounts (Nights, Tiers, Fees)

Watch: add if(), date maths and discounts to Gravity Forms calculations

Core Features

Rule sets for conditional logic: conditions in AND / OR groups, nested up to five levels
Use a rule set in fields, sections, pages, Next and Submit buttons, notifications, confirmations and add-on feeds
New comparisons: does not contain, matches pattern, is empty, length, number ranges
Date rules: on, before, after, between, relative to today or another date field, and age
Compare one field with another field: text, numbers and dates
Rules checked live and again on the server; hidden fields are never validated or saved
if(condition, value_if_true, value_if_false) for tiered prices, discounts and minimum charges
Comparisons anywhere in a formula: = != > < >= <=, plus and(), or() and not()
min(), max(), sum(), round(x, decimals), floor(), ceil(), abs(), pow(), sqrt() and mod()
Date fields in formulas with days_between(), age(), weekday() and today()
Works with every Date field input type and date format
Checkboxes and Multi Select fields add up the selected values; count() returns how many are selected
Live results in the browser, recalculated on the server on submission
Fields hidden by conditional logic count as 0, as in standard formulas
Built-in formula parser that only knows the listed functions; division by zero gives 0
Form editor helper: Insert function, Insert date or choice field, Function reference and Validate Formula
Switch each function group on or off, and turn the add-on off per form
Loads its script only on forms that use the functions
Visitor rules: show or hide fields, pages, buttons, notifications, confirmations and feeds by logged in status, user role or user meta
User role rules for every role on your site, custom roles included
User meta rules (is, is not, contains, is empty, is not empty) for the meta keys you allow in the settings
Visitor rules are checked on the server; the browser only receives true or false for each rule
After submission, notifications, confirmations and feeds use the person who submitted the entry

What does it do?

Gravity Forms calculation formulas only understand numbers, merge tags, + – * / and brackets. A tiered price, a minimum charge, a discount above a quantity, the number of nights between two dates or the number of ticked boxes cannot be written, and the formula returns 0.

The Gravity Forms Logic & Math Pro Premium Add-on adds functions you type straight into the formula box of a Number field or a Calculated product field: if(), comparisons, and/or/not, min, max, sum, round, floor, ceil, abs, pow, sqrt and mod, date functions for Date fields, and totals and counts for Checkboxes and Multi Select fields.

Results update live while the visitor fills in the form and are calculated again on the server on submission, so the stored value always matches the formula. Formulas that only use + – * / keep working exactly as before.

Version 1.1 adds rule sets to conditional logic: combine conditions in AND / OR groups, compare dates with today or another date field, check ages, patterns and lengths, or compare two fields, then use the rule set in any conditional logic of the form: fields, pages, buttons, notifications, confirmations and add-on feeds. Every rule is checked live and again on the server.

Since version 1.2 a rule can also depend on who is filling in the form: logged in or not, their user role, or a user meta value such as a membership level. Show a member discount code to logged-in Gold members only, staff notes to editors, or a sign-up box to visitors who are not logged in. Visitor rules are checked on the server, so a field hidden from a role is not validated or saved, and forms without visitor rules work exactly as before.

How does it work?

When a visitor changes a field, the add-on reads the values the formula uses the same way Gravity Forms does, evaluates the formula with its built-in parser and hands the number back to Gravity Forms, which rounds and formats it. When the form is submitted, Gravity Forms recalculates every calculation field on the server and the add-on evaluates the same formula there, so the saved entry always holds the correct result.

Interface Previews

Screenshot
Screenshot
Screenshot

How do I enable this?

1
Install and activate the add-on, then activate your license key in Forms → Settings → Logic & Math.
2
Leave Math & logic functions, Date functions and Choice count & sum on, or switch off the groups you do not need.
3
Edit a form, add a Number field and tick Enable Calculation (or use a Calculated product field).
4
Type a formula or use Insert function and Insert date or choice field above the formula box.
5
Click Validate Formula, pick the rounding and save the form.
6
For conditional logic: open Form Settings → Logic & Math, add a rule set, then choose "Rule set: <name>" in the field list of any conditional logic rule.

Customer Reviews

Submit your review
1
2
3
4
5
Submit
     
Cancel

Create your own review

GravityExtra
Average rating:  
 0 reviews

Have a new Feature idea?

Didn't see a feature in our plugin that you think would be useful? Share with us and let the team be a part of it.

Submit a Feature Request
$39/year
All-Access PassNeed several add‑ons? Get all 835 Gravity Forms add‑ons with All-Access: $249/year for 10 sites.See the pass →
Add any 2nd item, get 30% OFF both!
Use code GFEX30 at checkout
Secure checkout via Stripe
What's Included
  • Automatic Yearly Renewal
  • 1 Year Free Support & Updates (Renewable)
  • 24x7 Dedicated Customer Care
24/7 Support
For any query, connect with us on our support portal.
Submit a Query →
Quick Info
Version 1.2.0
Changelog
Icon
Gravity Forms Logic & Math Pro Premium
9 people are viewing this

Wait! Don't leave
empty-handed 🎁

Grab these exclusive codes to use at checkout!

10% OFF On all products
GFEX10
30% OFF Best Value
On any 2+ items
GFEX30

No thanks, I'll pay full price

Someone just bought this A few seconds ago
0
0
Your Cart
Your cart is emptyReturn to Shop