Skip to content
BrightLeaf Digital
BrightLeaf Digital
  • About
  • Plugins
    • GravityOps Bundle
    • Integrate Asana with Gravity Forms
    • Mass Email Notifications for Gravity Forms
    • Recurring Form Submissions
    • Kanban View for GravityView
    • Global Variables
    • Folders4Gravity (free!)
    • GravityOps Search (free!)
  • Snippets
  • Agencies
  • Contact
  • 👤
BrightLeaf Digital
  • About
  • Plugins
    • GravityOps Bundle
    • Integrate Asana with Gravity Forms
    • Mass Email Notifications for Gravity Forms
    • Recurring Form Submissions
    • Kanban View for GravityView
    • Global Variables
    • Folders4Gravity (free!)
    • GravityOps Search (free!)
  • Snippets
  • Agencies
  • Contact
  • 👤

BL Digital Guidelines & Policies

2
  • Using the Plugin on a Client Site
  • BrightLeaf Digital Refund Policy

Integrate Asana with Gravity Forms

30
  • Getting Started
    • Integrate Asana with Gravity Forms — Welcome & Overview
    • Finding the Plugin in Your Dashboard
  • Setup
    • Connect Asana (OAuth)
    • Create Your First Feed (5-Minute Quickstart)
  • Settings Reference
    • Feed Settings — Name, Conditional Logic & Trigger
    • Asana Task Settings Reference
    • Feed Triggers
    • Mapping Custom Fields
    • Workflow Steps — Create Task
    • Workflow Steps — Update Task
  • How-to Guides
    • Use Conditional Logic to Route Tasks
    • Choosing the Right Feed Trigger
    • Attach File Uploads to Tasks
    • Use Asana Custom Fields as Automation Signals
    • Workflow Steps: Create Task
    • Workflow Steps: Update Task
  • Troubleshooting
    • Known Limitations
    • Basics
    • Reconnecting / Resetting Credentials
    • Task Creation Failed → Backup Task Behavior
    • Items Not Showing in Drop-downs
    • Feed Page Unavailable
    • Task Description Caused Errors
    • Duplicate Tasks
  • Explanations & Concepts
    • OAuth and Scopes
    • Permissions & Workspaces
    • How Feeds Run
    • Performance Considerations
  • Changelog/Roadmap
    • Changelog
    • Roadmap

Mass Email Notifications for Gravity Forms

48
  • Getting Started
    • Mass Email Notifications — Welcome & Overview
    • Finding the Plugin in Your Dashboard
    • Before You Begin: Email Limits & SMTP
    • How Batches Are Created & Sent (5-Minute Delay)
    • Recommended Setup Pattern — Master Control Notification Form
  • Setup
    • Configure Global Send Limits (Throttling)
    • Create Your First Feed (5‑Minute Quickstart)
    • Using a GF Notification as Your Email Template
    • Schedule Batches for a Future Date
  • Settings Reference
    • Workflow Step
    • Global Settings — Limits Reset Rules, Old Batch Cleanup, Cron Toggle & Next Run
    • Unsubscribe Settings (Free Version)
    • Unsubscribe & Preferences Settings (Premium Version)
    • Double Opt-In Settings (Premium Version)
    • Feed Settings — Name, Label, Dedupe, Completion Email
    • Choose Target Form & Email Field
    • Email Settings — From, Reply-To, Subject, Message, Merge Tags
    • Unsubscribe & Preferences Merge Tags Reference
    • Merge Tag Fallbacks & CSV Column Mapping
    • Schedule Based on Date Field
    • Conditional Logic — Feed Form vs. Target Form
    • CSV Ingestion
  • How‑to Guides
  • Troubleshooting
    • Basics
    • Batches Not Sending / Cron Not Running
    • Preview Shows 0 Recipients with Target-Form Filters (Premium)
    • Troubleshooting Unsubscribe & Preferences Issues
    • Hitting Rate Limits
    • Emails Going to Spam
    • Entries/Batches Missing After Deletions
  • Explanations & Concepts
    • Understanding Double Opt-In
    • Understanding the Unsubscribe and Preferences System
    • How Batching & Cron Work
    • Throttling Models Explained
    • Deduplication Strategy
    • Batch Statuses & Actions
    • What Gets Logged
    • Limitations & Design Trade‑offs
    • Security & Permissions Considerations
  • Changelog / Roadmap
    • Changelog
    • Roadmap

GravityOps Search

6
  • Nesting Shortcodes
  • Using Search Operators
  • Multi-Input Field Support
  • General Notes
  • The Display Attribute
  • Changelog

Kanban View for GravityView

7
  • Getting  Started
    • Kanban View for GravityView
    • How KV4GV Complements GravityView & Gravity Flow
  • Setup & Configuration
    • Quick Start & Setup
    • Board & Card Configuration
  • How‑to Guides / Use Cases
  • Changelog & Roadmap
    • Changelog
    • Roadmap

Recurring Form Submissions for Gravity Forms

10
  • Getting Started
    • Welcome & Overview
    • Finding the Plugin in Your Dashboard
  • Setup
    • Creating Your First Recurring Feed (Quickstart)
  • Settings Reference
    • Plugin Settings Page
    • Feed Settings
    • Entry Page
    • Notifications, Alerts & Shortcodes
  • Explanations & Concepts
    • Lifecycle, Scheduling, Deletion & Edge Cases
  • Changelog/Roadmap
    • Roadmap
    • Changelog

Global Variables

7
  • Getting Started
  • Creating and Using Variables
  • Nesting Variables
  • Using Variables in Conditional Logic
  • Developer Notes
  • Roadmap
  • Changelog

Folders4Gravity

7
  • Getting Started with Folders4Gravity
  • Getting Started with Folders
  • Folder Management
  • Inside a Folder
  • Admin Dashboard Widgets
  • Frequently Asked Questions
  • Changelog
View Categories
  • Home
  • GravityOps Documentation
  • Global Variables
  • Using Variables in Conditional Logic

Using Variables in Conditional Logic

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.

Updated on November 20, 2025

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Table of Contents
  • How It Works
  • Typical Uses
  • Important Notes
  • Example

Stay Updated

Unlock weekly tools and insights that help you run your business on WordPress - faster and smarter.

This field is hidden when viewing the form
Name
This field is hidden when viewing the form
You've already subscribed with that email address!

Run your business operations on WordPress — without SaaS. Own your stack, own your data.

Support

Login

Request Support

Ask The Community

Read Our Documentation

Company

Join Our Agency Program

Become An Affiliate

Contact BrightLeaf Digital

Check Out Our Blog

Follow Us

2026 BrightLeaf Digital

Privacy Policy

Terms of Service

  • About
  • Plugins
    • GravityOps Bundle
    • Integrate Asana with Gravity Forms
    • Mass Email Notifications for Gravity Forms
    • Recurring Form Submissions
    • Kanban View for GravityView
    • Global Variables
    • Folders4Gravity (free!)
    • GravityOps Search (free!)
  • Snippets
  • Agencies
  • Contact
  • 👤