Global Variables lets you use the evaluated result of a variable inside form field conditional logic in Gravity Forms. You can base show/hide rules for individual fields on the output of a reusable formula, instead of recreating the same expression in multiple places.
How It Works #
When a variable is used inside a field’s conditional logic rule, the plugin expands the variable into its underlying shortcode, processes it, and returns the evaluated value. Gravity Forms then compares that value against the condition you set for that field.
Typical Uses #
- Show or hide a field when a calculated total crosses a specific threshold
- Reveal additional options only when certain computed criteria are met
- Gate follow‑up fields behind dynamic values (for example, only display a field if a calculated discount or score is high enough)
Important Notes #
- Only form field conditional logic is supported. This does not extend to confirmations or notifications.
- Make sure your variable returns a value type that matches what your condition expects (for example, a number if you are doing numeric comparisons).
- Nesting works normally here—if your variable depends on other variables, they are resolved first.
- If the result doesn’t behave as expected, test the variable on a simple HTML field to confirm what value it produces before wiring it into conditional logic.
Please note this is only available with the Premium or Agency plans.
Example #
A field is shown only if the evaluated value of {grand_total} is greater than 500.
Condition:
Show this field if
{grand_total} is > 500
With this setup, any change to the underlying subtotal, tax logic, or nested variables automatically updates the conditional behavior of that field.