Hi @papyrusdoc
I hope you’re well today and thank you for your question!
I tried to replicate this issue but I might be missing something about form configuration. Here’s what I tried:
– created a form with following fields: radio, number, calculations and stripe
– created two options for radio field: “fixed” and “other”
– enabled calculations for radio and set value for “fixed” to 212 and for “other” to 0
– set visibility for number form to show it only if radio is set to “other” option
– set “radio-1 + number-1” formula in calculation
– and set Stripe to use “variable” amount, calculation field being source of amount.
Is this about right?
It seems to be working fine on my test site and I didn’t notice any behavior like the one that you described but I suppose I might be missing some additional field or setting.
It would be best if we could test it using your form then so could you export the form in question and share it with us?
Please upload the export code to pastebin.com or export file to Dropbox, Google Drive or similar service and share direct link with us here and we’ll test the form, look into it and see what to do to fix it.
Best regards,
Adam
Thank you for your quick reply. The exported form is available at:
https://drive.google.com/file/d/1Zn9VI9ItVWSaY9eRaBazDUuOcOqyz0Hh/view?usp=sharing
I greatly appreciate the help.
Hi @papyrusdoc
Thank you for the form.
Could you let us know if I am missing anything?
I imported the form, removed the Stripe:
If I select other amount and set 300:
https://monosnap.com/file/2QppiAWxpCUgFpNCcNBprGpHGKn50F
On the total it stays the 300:
https://monosnap.com/file/vaYeqQ8jz1dGgLAH33SrLGq3GbkUBP
However, if I add the Stripe back it makes no difference
https://monosnap.com/file/bGzKzQIGIVy5E9sYRECOmGjzMGQcSm
https://monosnap.com/file/hbxvmP0HPeghZBFVrtnqla7TQdHqU4
The total keeps from “other” value.
I tried to keep the other value and switch to 500 and verify if the total would be 600 but it worked fine too, keeping 500 and submitting the form as expected.
Let us know what we are missing on this.
Best Regards
Patrick Freitas
I appreciate your work. It is apparently working differently on my site.
The exact form that I exported is on this page: https://temp.ololsvdp.org/donate-online/ . It is not removing the Other field from the calculations and the Other field does not disappear when unselected. I can’t tell from your screenshots if the other amount field disappeared when you selected a pre-set value.
It does the same thing in the preview. I deactivated all plugins and tried the default 2021 theme and the issue remained. When I remove the stripe field, the visibility issues work correctly.
Hi @papyrusdoc,
Thanks for sharing the URL, it seems to be a site-specific issue. I could notice the issue is caused due to a jQuery error that points to Stripe configuration in the Forminator side:
Uncaught IntegrationError: You should not use your secret key with Stripe.js.
Please pass a publishable key instead.
Could you please make sure you have added the correct Publishable Key and Secret Key when configuring Stripe under Forminator > Settings > Payments page?
The error points out that the secret key was added instead of the publishable key and due to that it’s throwing a conflict.
So we’ll have to 1st fix the jQuery error in order to rule out whether that isn’t the case or not.
Please make sure to clear the cache(if enabled) once the changes are done.
Even after the above changes if you still notice the same issue then please do check whether the form works fine on a new page with Gutenberg editor.
Since the current page is created using Divi Builder, would like to see if the issue with the form isn’t specific to the page editor or not too.
These should help in giving a better idea of what might be causing it.
Please do let us know how that goes. Have a nice day ahead.
Kind Regards,
Nithin
It was a key that was incorrect. After I fixed that, it worked beautifully. I really appreciate your assistance in identifying the issue.
Hi @papyrusdoc
You are welcome.
We are marking this as resolved, feel free to ping us any time you need.
Best Regards
Patrick Freitas