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.
keywords: stripe.js, required fields, conditional logic