Support » Plugin: Forminator - Contact Form, Payment Form & Custom Form Builder » Stripe visibility failure affects calculations

  • Resolved papyrusdoc


    I have a donation form where the user can select either a pre-valued radio button amount or enter their own amount. The Other radio option triggers the Other Amount number field visibility. A calculations field adds radio + Other to create total. If a radio is selected, the other amount field disappears and is removed from the calculation.

    It works fine until the Stripe field is added. Because the Stripe field breaks the visibility of the Other Amount field (a bug acknowledged by Forminator in Sept 2020), the totals field will keep a value in the Other Amount Field even if the user changes their mind and selects a radio button total, ending up adding the two instead of either/or.

    Is there another way to prevent the user from having an amount in the other field AND a pre-valued button selected while a Stripe field is included in the form?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Adam – WPMU DEV Support


    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 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,

    Thread Starter papyrusdoc


    Thank you for your quick reply. The exported form is available at:

    I greatly appreciate the help.

    Plugin Support Patrick – WPMU DEV Support


    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:

    On the total it stays the 300:

    However, if I add the Stripe back it makes no difference

    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

    Thread Starter papyrusdoc


    I appreciate your work. It is apparently working differently on my site.

    The exact form that I exported is on this page: . 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.

    Plugin Support Nithin – WPMU DEV Support


    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,

    Thread Starter papyrusdoc


    It was a key that was incorrect. After I fixed that, it worked beautifully. I really appreciate your assistance in identifying the issue.

    Plugin Support Patrick – WPMU DEV Support


    Hi @papyrusdoc

    You are welcome.

    We are marking this as resolved, feel free to ping us any time you need.

    Best Regards
    Patrick Freitas

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Stripe visibility failure affects calculations’ is closed to new replies.