# Conditional Logic not Working

**URL:** <https://community.gravityforms.com/t/conditional-logic-not-working/4758>\
**Category:** Get Help\
**Tags:** conditional-logic, conflict, caching\
**Created:** [May 10, 2020, 9:20am UTC](https://community.gravityforms.com/t/conditional-logic-not-working/4758 "2020-05-10T09:20:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![user5eb7b4bb0352a835](https://avatars.discourse-cdn.com/v4/letter/u/b5ac83/32.png) [@user5eb7b4bb0352a835](https://community.gravityforms.com/u/user5eb7b4bb0352a835)\
**Post date:** [May 10, 2020, 9:20am UTC](https://community.gravityforms.com/t/conditional-logic-not-working/4758/1 "2020-05-10T09:20:45Z")

</div>

I’ve had a great run with Gravity Forms for 2-3 years now, making full use of the conditional logic feature. For some reason, when adding conditionals to newly listed products, the JS code was not being generated to produce the conditional logic. At first this was only happening to newly created products, I figured I might be out of date on my Gravity Forms version. When I upgraded my version the problem spread to ALL products with conditionals.

I upgraded Wordpress after that, and a bunch of other plugins (except WooCommerce, since some of the plugins I have are not compatible with the current WooCommerce version), but the problem still persists.

I stumbled upon this article, tried the suggestions but I wasn’t able to narrow down the problem. This is where I got the idea that the JS code is probably not being generated:

> **[Common Form Issues - Gravity Forms Documentation](https://docs.gravityforms.com/common-issues/)**
>
> This article outlines common issues you may be faced with, and how to resolve them.

I’m stumped. Does anybody have any ideas on how to troubleshoot this?

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [May 11, 2020, 8:30pm UTC](https://community.gravityforms.com/t/conditional-logic-not-working/4758/2 "2020-05-11T20:30:27Z")

</div>

Hi Dominic. That article is super-old and very superficial. Chances are you have a theme or plugin conflict on the site, interfering with the conditional logic, or, something in the form is not configured correctly.

I recommend opening a support ticket for this issue:  
[https://www.gravityforms.com/open-support-ticket/](https://www.gravityforms.com/open-support-ticket/)

However, if you would like to get started by checking if it’s a theme or plugin conflict, you can use these steps to do that:

> **[Testing for a Theme/Plugin Conflict - Gravity Forms Documentation](https://docs.gravityforms.com/testing-for-a-themeplugin-conflict/)**
>
> The following sections provide instructions for determining if an issue you are experiencing with Gravity Forms is caused by a theme or plugin conflict.

If you share the link to a page on your site where we can see the form, we may be able to offer more specific advice.

---

<div class="post-metadata">

**Author:** ![user5eb7b4bb0352a835](https://avatars.discourse-cdn.com/v4/letter/u/b5ac83/32.png) [@user5eb7b4bb0352a835](https://community.gravityforms.com/u/user5eb7b4bb0352a835)\
**Post date:** [May 11, 2020, 11:31pm UTC](https://community.gravityforms.com/t/conditional-logic-not-working/4758/3 "2020-05-11T23:31:28Z")

</div>

Hi Chris,  
I figured it out!

When I tested my changes on mobile, the changes worked. I believe it was cache-ing issue with my browser. I also have a plugin called Autoptimize that may have played a role in the JS not being generated while testing the changes within the same browser session. I’ve since updated that plugin. After testing changes outside of that session, it worked as expected.

Bottom line, I learned to test site changes with another browser and to clear the cache if anything unexpected happens as a result.

Thanks for the reply!

Best,  
Dom

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [May 11, 2020, 11:34pm UTC](https://community.gravityforms.com/t/conditional-logic-not-working/4758/4 "2020-05-11T23:34:02Z")

</div>

Good deal. Thank you for the update.

---

<div class="post-metadata">

**Author:** ![richardw8k](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/richardw8k/32/2354_2.png) [@richardw8k](https://community.gravityforms.com/u/richardw8k)\
**Post date:** [January 5, 2022, 8:47am UTC](https://community.gravityforms.com/t/conditional-logic-not-working/4758/5 "2022-01-05T08:47:32Z")

</div>

Closed on January 5, 2022, 8:47am UTC


