# Changed behavior? Or I have something wrong? Conditional logic on required field

**URL:** <https://community.gravityforms.com/t/changed-behavior-or-i-have-something-wrong-conditional-logic-on-required-field/9311>\
**Category:** Get Help\
**Tags:** conditional-logic, stripe\
**Created:** [May 20, 2021, 9:34pm UTC](https://community.gravityforms.com/t/changed-behavior-or-i-have-something-wrong-conditional-logic-on-required-field/9311 "2021-05-20T21:34:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cenay](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/cenay/32/211_2.png) [@Cenay](https://community.gravityforms.com/u/Cenay)\
**Post date:** [May 20, 2021, 9:34pm UTC](https://community.gravityforms.com/t/changed-behavior-or-i-have-something-wrong-conditional-logic-on-required-field/9311/1 "2021-05-20T21:34:20Z")

</div>

So, the latest version of Gravity (2.5.2) running on WordPress 5.7.2 is behaving strangely for me on this one form, on this one site. (Note, I have GF running on another site with a VERY similar form and conditional logic with no issues)

This is a sponsorship form, which accepts a donation. Some of these are big ticket amounts, so we offer the option to “invoice them” rather than collect via credit card.

Make sense so far?

I created a conditional on the CC element, that says if they selected the “invoice me” option, hide the CC field. Please note the CC field is **required**. In the past, when you had a required field but then hid it, form validation did NOT hang on the missing field.

Now however, it is attempting to send the credit card data, which is missing, to the payment gateway (Stripe). Renders a “Unable to authorize card. No response from Stripe.js” error in the validation. Which I can ONLY see if I uncheck the “invoice me” option.

I’m hoping this was just an overlooked condition by Gravity Forms on the new version. Any hints? Help? Suggestions?

The client wants this behavior rather than two forms, one for invoice request and another to actually donate via credit card.

I do have the form NOT as a legacy form. I’ve recreated it from scratch. I imported from another site and edited (three different forms) and all three fail.

Thanks in advance for any help.

Cenay’

keywords: stripe.js, required fields, conditional logic

---

<div class="post-metadata">

**Author:** ![Cenay](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/cenay/32/211_2.png) [@Cenay](https://community.gravityforms.com/u/Cenay)\
**Post date:** [May 20, 2021, 9:43pm UTC](https://community.gravityforms.com/t/changed-behavior-or-i-have-something-wrong-conditional-logic-on-required-field/9311/2 "2021-05-20T21:43:37Z")

</div>

Additional Info:

On [this post](https://community.gravityforms.com/t/make-a-field-required-it-another-field-is-selected-resolved/5407), Chris says:

“Conditional logic can’t make a field required or not, but, you can make that dependent field required, and show or hide is based on the other field. **If it remains hidden, even though it is required, the form can be submitted without error.** When it is shown, because it is required, it must be completed before the form can be submitted. This is the normal usage for conditional logic (show/hide a field when necessary based on another choice.) If you need more help configuring that, please let us know.” – which I know to be true in previous versions.

In fact, I use this on several different sites successfully. This is why I’m thinking it might be related to the latest version.

---

<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 21, 2021, 2:13am UTC](https://community.gravityforms.com/t/changed-behavior-or-i-have-something-wrong-conditional-logic-on-required-field/9311/3 "2021-05-21T02:13:00Z")

</div>

Hi Cenay. Be sure that your Stripe feed has the same conditional logic on it, so that the feed does not run when you did not collect any credit card information (because the credit card field was hidden.) Please let us know if that fixes the issue for you. Thank you.

---

<div class="post-metadata">

**Author:** ![Cenay](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/cenay/32/211_2.png) [@Cenay](https://community.gravityforms.com/u/Cenay)\
**Post date:** [June 25, 2021, 2:45am UTC](https://community.gravityforms.com/t/changed-behavior-or-i-have-something-wrong-conditional-logic-on-required-field/9311/5 "2021-06-25T02:45:42Z")

</div>

Quick update on this…I’ve setup as suggested, and it’s not working. I recorded (3 min) a video showing the setup, and the problem.

Appreciate any help!

Cenay’

---

<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:** [June 28, 2021, 3:50pm UTC](https://community.gravityforms.com/t/changed-behavior-or-i-have-something-wrong-conditional-logic-on-required-field/9311/6 "2021-06-28T15:50:29Z")

</div>

Hi @Cenay - please open a support ticket for this issue if you still need assistance:

> **[Support](https://www.gravityforms.com/support/)**
>
> Welcome to the Gravity Forms customer support page. Please research your issue on the FAQ and Documentation pages before submitting a support ticket. This

Thank you.

---

<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:31am UTC](https://community.gravityforms.com/t/changed-behavior-or-i-have-something-wrong-conditional-logic-on-required-field/9311/7 "2022-01-05T08:31:20Z")

</div>


