Troubleshooting
Gravity Forms Conditional Logic Not Working: Causes and How to Fix It

Short answer
Gravity Forms conditional logic usually fails because a rule compares the wrong choice value, the logic was not saved, the source field is itself hidden, or a JavaScript error stops the form scripts. Check each rule, then the browser console, and test with caching and script optimisation turned off.
Key takeaways
- Make sure logic is enabled and the form is saved after edits.
- Rules compare against choice values, which may differ from labels.
- Fields hidden by logic count as empty in other rules.
- Any JavaScript error on the page can stop conditional logic.
- Exclude Gravity Forms scripts from delay, defer and combine options.
Why is Gravity Forms conditional logic not working?
Gravity Forms conditional logic usually fails because a rule compares the wrong value, the logic was never enabled or saved, a JavaScript error stops the form scripts, or caching and optimisation plugins break the form.
Conditional logic runs in the visitor's browser. Gravity Forms checks the rules as people fill in the form and shows or hides fields, sections, pages and buttons in real time.
That means two kinds of problems can stop it: settings mistakes inside the form, and anything that breaks JavaScript on the page.
The official guide to enabling conditional logic for fields is worth keeping open while you check your rules.
If the whole form misbehaves, not only the logic, our broader guide to Gravity Forms not working is a better starting point.
Is conditional logic enabled and saved?
Open the field in the form editor, make sure the conditional logic toggle is on with at least one complete rule, and click Update to save the form.
This sounds basic, but it trips people up often. The rule panel can look complete while the form itself was never saved.
Check these points for each field:
- The Enable Conditional Logic setting is switched on.
- The action is right: Show or Hide this field.
- All or Any is set correctly for multiple rules.
- Every rule has a field, an operator and a value.
All means every rule must match. Any means one is enough. Picking the wrong one is a classic reason a field never appears.
After saving, reload the page with the form in a private window. An old cached copy may still show the form without your new rules.
Does the rule value match the choice value?
Rules compare against the stored choice value, not always the label you see, so a rule set to the label can fail when choices use separate values.
Drop-downs, radio buttons and checkboxes can have show values turned on. When that is enabled, each choice has a label and a separate value.
If a choice reads Yes, please but its value is yes, a rule that types Yes, please into a text box will never match.
Pick the value from the rule's drop-down where possible. If you type it, copy the exact value, including case and spaces.
Also check your operator:
| Operator | Matches when | Common mistake |
|---|---|---|
| is | Value is exactly the same | Extra space or different case |
| is not | Value is anything else | Also true when field is empty |
| contains | Value includes the text | Matching too broadly |
| starts with | Value begins with the text | Using a label instead of value |
| greater than | Number is larger | Field is not a number field |
| less than | Number is smaller | Number format uses commas |
Number comparisons depend on the field's number format. If your Number field uses a comma as the decimal mark, test rules carefully with real values.
Is the source field hidden by its own logic?
When the field used in a rule is itself hidden by conditional logic, Gravity Forms treats its value as empty, so any rule depending on it will not match.
This creates chains that look broken. Field C depends on field B, but field B is hidden because of field A, so C never shows.
Map out your chains on paper for complex forms. Make sure each field in the chain can actually be visible when you expect the next one to appear.
The same applies to pages and sections. Fields inside a hidden section or page are treated as hidden too.
Is a JavaScript error stopping the form?
If any script on the page throws an error before Gravity Forms runs, conditional logic stops working, so check the browser console first.
Open the page, right-click and choose Inspect, then the Console tab. Reload and interact with the form.
Red errors are the clue. They often name a file from another plugin, your theme or a third-party script.
Common sources of errors include:
- A theme or plugin loading an old copy of jQuery.
- Custom code added to the footer or a code snippets plugin.
- A broken tracking or chat widget.
- An outdated Gravity Forms add-on.
PHP errors can also stop the form from rendering properly. The WordPress guide to debugging in WordPress shows how to log them.
If you are new to the console, MDN's guide to browser developer tools explains the basics.
Are cache or optimisation plugins breaking it?
Script minify, combine, delay and defer options can load Gravity Forms scripts in the wrong order or too late, which leaves conditional logic dead until the page is reloaded.
A strong sign is that the form works while you are logged in but not for visitors. Logged-in users often skip the cache and some optimisation.
Test like this:
- Purge every cache, including any CDN.
- Turn off JavaScript delay, defer and combine options.
- Test the form in a private window.
- If it now works, turn options back on one at a time.
- Exclude Gravity Forms scripts from the option that broke it.
Our guide to clearing cache in WordPress covers the main cache plugins and hosting caches.
Is the form loaded in a way that skips its scripts?
Forms loaded by AJAX, inside pop-ups, tabs or page builder widgets can miss their setup scripts, so the logic never initialises.
Gravity Forms needs to run its scripts after the form appears on the page. Pop-up plugins and some builders insert the form later, after the page has loaded.
Try placing the form on a plain page with the Gravity Forms block or shortcode. If logic works there, the problem is how the form is being embedded.
Our guide to Gravity Forms AJAX not working covers AJAX-specific issues.
For embedding problems, see Gravity Forms not showing on page.
Is there a plugin or theme conflict?
If settings look correct and the console shows nothing obvious, test for a conflict by switching to a default theme and turning off other plugins on a staging copy.
Never run this test on a busy live site. Use a staging copy, or the Troubleshooting Mode in the Health Check plugin, which only affects your own login session.
- Switch to a default WordPress theme.
- Deactivate every plugin except Gravity Forms.
- Test the conditional logic.
- Turn plugins back on one by one, testing each time.
When logic breaks again, the last plugin you activated is the likely cause. Our guide to fixing a plugin conflict explains this process in more detail.
Is custom code changing field values?
Code that fills in or changes values with filters or scripts may run after the logic checks, so the rules see an old or empty value.
Dynamic population, calculations and custom snippets are useful, but timing matters. If a value is set after the page loads, conditional logic may need a trigger to check again.
If you use custom code, review the Gravity Forms developer documentation for the right hooks. Hooks such as the one that fires after a logic action runs can help you debug.
Turn off any custom snippet temporarily to see if the logic starts working.
Why does logic work on the form but not in notifications?
Notifications, confirmations and routing use their own conditional logic settings, which are separate from field logic and run on the server after submission.
If an email does not send for some entries, open Settings > Notifications for that form and check its conditional logic panel.
Remember that values from fields hidden by logic are not saved. A notification rule that depends on a hidden field will not match.
If notifications are not sending at all, see our guide to fixing Gravity Forms notifications not sending.
What should you send to Gravity Forms support?
If you still cannot fix it, export the form, note the exact rule that fails, and include any console errors and your system status report when you contact support.
You can find the system status under Forms > System Status. It lists your versions, active plugins and theme.
The Logging Add-On records what happens during submission. That helps with notifications and confirmations, though field logic itself happens in the browser.
A clear description and an exported form save a lot of back and forth with the support team.
Frequently asked questions
Why is my Gravity Forms field not showing when the condition is met?
The rule value may not match the stored choice value, the All or Any setting may be wrong, or the source field may be hidden by other logic. Also check the browser console for JavaScript errors that stop the form from updating.
Does Gravity Forms conditional logic work with caching?
Yes, page caching on its own is normally fine. Problems come from script optimisation such as delaying, deferring or combining JavaScript. Exclude Gravity Forms scripts from those options, purge the cache and test again while logged out.
Are hidden field values saved in Gravity Forms?
Fields hidden by conditional logic are not saved with the entry and count as empty in other rules. This is why chains of dependent fields can fail when an earlier field in the chain is hidden.
Why does conditional logic work in preview but not on my page?
The preview loads the form on its own, without your theme's extra scripts or optimisation. On the live page, a theme script, pop-up embed, page builder widget or cache setting may stop Gravity Forms scripts from running properly.
Can I use conditional logic on notifications in Gravity Forms?
Yes. Each notification and confirmation has its own conditional logic setting, separate from field logic. These rules run on the server after submission, so they only see values from fields that were visible and saved.
Sources
- Enabling Conditional Logic For Fields Gravity Forms Documentation
- Gravity Forms Documentation Gravity Forms
- Logging Add-On Gravity Forms Documentation
- Health Check and Troubleshooting WordPress.org Plugins
- What are browser developer tools? MDN Web Docs
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


