• Resolved taylordo

    (@taylordo)


    I am experiencing this error with Forminator. Searched the forums and google, appears to be common error for Forminator and GiveWP (Which I have since removed). Appears to be related to Stripe API adding processing fees?? from what I can gather? One solution I saw was “set a Visibility condition in the Stripe field to Hide it if the value of your Calculation field = 0” but no instructions on how to do that. Any help would be appreciated.

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @taylordo,

    I hope you are doing good today.

    You can add the visibility condition for the Stripe filed based on the value from the calculation field. Please find the option under the “Visibility” tab of the Stripe field.

    You can find more details about how to add a visibility condition in our documentation here: https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#Forminator-Conditional-Logic

    I hope that helps.

    Kind Regards,
    Nebu John

    Thread Starter taylordo

    (@taylordo)

    Thank you for the reply. I looked through the documentation here -> https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#Forminator-Conditional-Logic

    And I followed your instructions to add conditional formatting to the visibility tab under the Stripe field, however, I am still receiving a “This value must be greater than or equal to 1.” error.

    Thread Starter taylordo

    (@taylordo)

    I added the following “SHOW this filed if ALL calculation-3 NOT NULL”

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @taylordo ,

    I added the following “SHOW this filed if ALL calculation-3 NOT NULL”

    Is this working now for you? If not please export your form ?https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-export and share it with us using pastebin.com

    kind regards,
    Kasia

    Thread Starter taylordo

    (@taylordo)

    Hello Kasia,
    No this issue is still not resolved.
    Please see >> https://pastebin.com/ycYZTWd8

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @taylordo

    Thank you for response!

    Unfortunately, the paste that you shared seems to be private and I can’t access it. I believe you shared the form there so could you please set the past to public and update us here?

    Note:
    – even if you make it public, your Stripe data (API keys) are not included in form export file
    – if there are e.g. private information such as e-mail notifications’ content or e-mail address that you do not want to disclose, consider this: make a copy of the form, from that copy remove e-mail notifications, and then export it and share with us as publicly visible paste through paste bin.

    Kind regards,
    Adam

    Thread Starter taylordo

    (@taylordo)

    Hi Adam @wpmudev-support8,
    My apologies, it should be public now.
    Thanks,
    Doug

    Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @taylordo !

    Please try setting the Stripe field like this:

    https://monosnap.com/file/qPQbf4Qq2T2pzlZGkze9Xp558kj5ch

    Please let us know if this worked for you (I just tested it on my test site and it looks like it’s working correctly).

    Best regards,
    Pawel

    Thread Starter taylordo

    (@taylordo)

    Hi Pawel, ok the 1st option worked eventually, although it briefly flashed an error.
    Here is your confirmation email:

    You have a new website form submission: 
    1.	FIRST name
    fdsfsdfdsfs
    2.	LAST name
    fsfsdf
    3.	EMAIL address
    [email protected]
    4.	Please enter your business name (optional)
    fdsfdsfsd
    5.	Leave a comment to be displayed publicly (optional)
    fsdfsdfsd
    6.	Checkbox
    Make this an anonymous donation?
    7.	Please choose your contribution amount below.
    8.	Checkbox
    9.	Please enter your contribution amount
    10.	Subtotal amount of $20 contribution
    0.00
    11.	Subtotal amount of OTHER contribution
    0.00
    ---
    This message was sent from https://dev0.tempurl.host.

    I ran the 1st option myself and it quickly flashed an error then finished processing. Here is my confirmation email:

    You have a new website form submission: 
    1.	FIRST name
    dfsdf
    2.	LAST name
    sdsadfas
    3.	EMAIL address
    [email protected]
    4.	Please enter your business name (optional)
    asdfasd
    5.	Leave a comment to be displayed publicly (optional)
    6.	Checkbox
    7.	Please choose your contribution amount below.
    $20.00 contribution amount
    8.	Subtotal amount of $20 contribution
    20.00
    9.	Subtotal amount of OTHER contribution
    0.00
    10.	Total amount of your contribution today
    20.00
    11.	Credit / Debit Card information powered by Stripe ? [ https://stripe.com/en-ca/legal ]
    Mode : test
    Product name : $20.00 one time fixed contribution amount
    Payment type : One Time
    Amount : 20.00
    Quantity : 1
    Currency : CAD
    Transaction id : pi_3KYjcALtJ4DDo9rQ1ju1TAyB
    Transaction link : https://dashboard.stripe.com/test/payments/pi_3KYjcALtJ4DDo9rQ1ju1TAyB
    Status : COMPLETED
    ---
    This message was sent from https://lawinthenews.com.

    The 2 issues for the 2nd option remain.
    Issue 1: After choosing the 2nd option the 1st option still remains visable on the screen.
    Issue 2: After entering the free form dollar amount, the form still returns a “This value must be greater than or equal to 1.”

    I have uploaded an animated GIF here -> https://we.tl/t-KrKamWGO1T

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @taylordo

    Could you please edit your Stripe plan conditionals?

    https://monosnap.com/file/UlytBjfKCMi2hn3wlyReUhG7rPZB92

    You don’t have conditions for the plans so it is trying to submit both when you have the fixed 20 unchecked the total for that is 0.00 and once Stripe tries to submit the payment the error is correct “This value must be greater than or equal to 1.”

    About the

    Issue 1: After choosing the 2nd option the 1st option still remains visable on the screen.

    This will cause issues, you will try to toggle between one to another element that depends on each other, the correct approach of this is to create a single Radio field with two options Fixed Amount, Variable and using the conditionals on that radio field only, but it will always allow a member to select one or other to prevent any loop on conditionals.

    Best Regards
    Patrick Freitas

    Thread Starter taylordo

    (@taylordo)

    Hi, Patrick, thank you for your response. it appears the form worked now. See the emails below. My questions to follow.

    You have a new website form submission: 
    1.	FIRST name
    tes
    2.	LAST name
    test
    3.	EMAIL address
    [email protected]
    4.	Please enter your business name (optional)
    5.	Leave a comment to be displayed publicly (optional)
    6.	Checkbox
    Make this an anonymous donation?
    7.	Please choose your contribution amount below.
    8.	Checkbox
    OTHER contribution amount
    9.	Please enter your contribution amount
    25.00
    10.	Subtotal amount of $20 contribution
    0.00
    11.	Subtotal amount of OTHER contribution
    25.00
    12.	Total amount of your contribution today
    25.00
    13.	Credit / Debit Card information powered by Stripe ? [ https://stripe.com/en-ca/legal ]
    Mode : test
    Product name : OTHER one time fixed contribution amount
    Payment type : One Time
    Amount : 25.00
    Quantity : 1
    Currency : CAD
    Transaction id : pi_3KZHxrKszjjq28qT1sFJzTiR
    Transaction link : https://dashboard.stripe.com/test/payments/pi_3KZHxrKszjjq28qT1sFJzTiR
    Status : COMPLETED
    ---
    This message was sent from https://patrickfreitas.net.br.

    You have a new website form submission: 
    1.	FIRST name
    tes
    2.	LAST name
    test
    3.	EMAIL address
    [email protected]
    4.	Please enter your business name (optional)
    5.	Leave a comment to be displayed publicly (optional)
    6.	Checkbox
    Make this an anonymous donation?
    7.	Please choose your contribution amount below.
    8.	Checkbox
    OTHER contribution amount
    9.	Please enter your contribution amount
    34.00
    10.	Subtotal amount of $20 contribution
    0.00
    11.	Subtotal amount of OTHER contribution
    34.00
    12.	Total amount of your contribution today
    34.00
    13.	Credit / Debit Card information powered by Stripe ? [ https://stripe.com/en-ca/legal ]
    Mode : test
    Product name : OTHER one time fixed contribution amount
    Payment type : One Time
    Amount : 34.00
    Quantity : 1
    Currency : CAD
    Transaction id : pi_3KZI0yKszjjq28qT2AVM6TrE
    Transaction link : https://dashboard.stripe.com/test/payments/pi_3KZI0yKszjjq28qT2AVM6TrE
    Status : COMPLETED
    ---
    This message was sent from https://patrickfreitas.net.br

    My questions:
    1. As you suggested, I updated my ‘Stripe Plan Conditionals’ to ‘$20.00 one time fixed contribution amount’. Do I also need to edit my Stripe plan conditionals for ‘OTHER one time fixed contribution amount’?
    2. You suggested ‘the correct approach of this is to create a single Radio field with two options Fixed Amount, Variable and using the conditionals on that radio field only’ . I currently have a ‘checkbox’ element set. Is that not equivalent to a ‘single radio field’? Or does the behaviour of a ‘radio field’ have different functionality from a ‘checkbox’ field? I have not made your suggested changes pending your answer.
    2.

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @taylordo

    1. As you suggested, I updated my ‘Stripe Plan Conditionals’ to ‘$20.00 one time fixed contribution amount’. Do I also need to edit my Stripe plan conditionals for ‘OTHER one time fixed contribution amount’?

    Your conditionals should match the customer workflow, if you want to let your users choose between one or another you also need to make the play to follow this workflow to prevent duplicated payments or issues like you had here.

    2. You suggested ‘the correct approach of this is to create a single Radio field with two options Fixed Amount, Variable and using the conditionals on that radio field only’ . I currently have a ‘checkbox’ element set. Is that not equivalent to a ‘single radio field’? Or does the behaviour of a ‘radio field’ have different functionality from a ‘checkbox’ field?

    Radio is always required to have one checked while checkbox should allow members to uncheck it, in case it is required to have one checked I would use radio.

    I exported a sample for you https://pastebin.com/YjMvPEim

    However, as long your workflow works there is no only one way to do it, the suggestion of using Radio is to make it easier to manage in the Stripe field.

    Best Regards
    Patrick Freitas

    Thread Starter taylordo

    (@taylordo)

    Hello, thank you for your replay.
    Leaving aside response # 1 above for the moment.
    I have made the changes to include a radio button instead of a checkbox. However, as I previously encountered, I have an issue now with how to calculate and subtotal the dollar amount.

    How can I pass 2 different dollar values from a radio option to a hidden subtotal calculation field (‘Total amount of your contribution today’) using conditional formatting? (see page 3 of the form) Revised form here -> https://pastebin.com/CnDGJ6AZ

    The dual choice radio option restricts me from being able to execute the following logic:

    if radio 1 is selected then pass a value of $20 to the subtotal field
    otherwise (Please choose your contribution amount),
    pass the value of ‘OTHER-one-time-fixed-contribution-amount’ to the subtotal field.

    The radio ‘Please enter your contribution amount’ section, has 2 different values depending on the selection (fixed and variable). Under the radio ‘calculations’ field, passing the value of variable is straight forward. The challenge is the variable field calculation requires an initial value. Screen shot here -> https://imgur.com/a/nan1zce

    The only workaround I could see is also placing a field option similar to variable under the fixed amount and lock the ability to edit. That seems cumbersome and potentially confusing for the user.

    Any suggestions?

    Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @taylordo !

    Hope you’re doing well today!

    In this case you can do that this way:

    – set “$20.00 one time fixed” option to value 1
    – set the other option to have a value of 0
    – the visibility rules for the currency input are okay
    – use the following formula:

    {radio-1} * 20 + {currency-1}

    In this case the Radio field will act as a “switch” – if the fixed value is selected, it will do:

    1 * 20 + 0

    Invisible fields have the value of zero, so it will only get the $20.

    Otherwise it will be:

    0 * 20 + {currency-1}

    So only the custom value will be used.

    Hope this helps.

    Kind regards,
    Pawel

    Thread Starter taylordo

    (@taylordo)

    Hi,
    Thank you.
    1. How do I …
    a) “set “$20.00 one time fixed” option to value 1”?
    b) “set the other option to have a value of 0”?

    2. You suggested “use the following formula: {radio-1} * 20 + {currency-1}”
    Q? Where is this value being placed?
    a) in the ‘Calculations’ field for ‘Please choose your contribution amount.(Radio 1)’
    b) in the ‘Calculations’ field for ‘Subtotal amount of contribution.{calculation-1}’
    c) in the ‘Calculations’ field for ‘Total amount of your contribution today. {calculation-1}+{calculation-2}’
    d) the {stripe-1} field

    • This reply was modified 2 years, 12 months ago by taylordo. Reason: Add additional info
Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘This value must be greater than or equal to 1’ is closed to new replies.