Our Stripe field is required, and must remain so or Entries will come in without payment when they should be charged (no coupon).
Is there a way to have the REQUIRED Stripe field use conditional logic to hide/not hide based on a Coupon Code field being empty/not empty? We would like to not force users with a total of $0.00 to complete this field.
Any other workarounds are also encouraged, but not interested in more plug-ins or adding code to our theme.
You can configure conditional logic on the Stripe field based on the code entered into the Coupon field. You’ll also need to configure the same logic on the feed in the Form Settings > Stripe area.
Thank you, I understand how to initiate the conditional logic. I am wondering if/how to make it so that even though the Stripe field is required, while it is hidden it will NOT be required.
Or am I to understand that the conditional logic on the Stripe feed will take care of this?
Required validation is not performed for fields hidden by conditional logic. But you will also need to configure the logic on the feed in the Form Settings > Stripe area, so the add-on won’t attempt to process the submission. Without the logic on the feed as well, the add-on can still attempt to process the submission even if the Stripe field is hidden.