How to add a donation field into my form

  • mchf
    Asked on December 3, 2020 at 4:53 PM

    Hello,

    We are charity who sell products and would like to add a donation field to our form. I checked others examples, but I can't set up your payments to be 'Defined by user'.


    Here are the option I can see for Paypal Integration in my form : https://www.jotform.com/build/203277485099063

    1607032209 5fc95d9185e8a Paypal1 Screenshot 10


    How can I get the same options for the Paypal Integration on my form so I could enable Donation with the Form Calculation as explained here: https://www.jotform.com/answers/2582367-how-to-donate-additional-funds-on-top-of-payment?


    Thanks,

    Martin

    Here is the Paypal Integration from a form (https://form.jotform.com/201196075642050) that was given as an example with a Donation field in another question:

    1607032292 5fc95de4a519f Paypal2 Screenshot 21

  • Welvin Support Team Lead
    Replied on December 3, 2020 at 8:07 PM

    You are using Product List, and the Payment Type is unavailable on this field. You have to delete it and use PayPal directly from the Payments tab.

    The method provided by my colleague Felipe in his last reply on the given ticket is using our basic elements such as the Single Choice, Textbox (as custom amount box), and calculation widget. The calculation widget is then passed to the payment field.

    So, following my colleague's solution, do the following:

    1. Add the product items using the Single Choice element, assign a calculation value for each item.

    https://www.jotform.com/help/301-How-to-Assign-Calculation-Value

    2. Add a short text entry as a custom amount input

    3. Add the calculation widget and sum up both single choice and short text.

    https://www.jotform.com/help/259-How-to-Perform-Form-Calculation-Using-a-Widget

    4. Pass the calculated amount to the Paypal Field:

    https://www.jotform.com/help/275-How-to-Pass-a-Calculation-to-a-Payment-Field

    Please try that and let us know if you can't get it to work.

    Thanks

  • mchf
    Replied on December 3, 2020 at 8:15 PM

    Thanks Welvin for your answer. I must use the Coupon code functionality that comes with Product List.

    Is there a way to have the Coupon code functionality (rebate of $100 for subtotal) AND the Donation field work within the same form?

    Martin

  • Jed_C
    Replied on December 3, 2020 at 9:46 PM

    The coupon function is not available if you set the payment type to "Donation". What you can do is create your custom calculation for your coupons.

    You will see in the payment properties that you can get the total value of your donation field from a calculation field. You can actually pass a discounted price to the calculation field and capture the total in the donation field.

    Please see this guide on how you can pass the total to a payment field https://www.jotform.com/help/275-how-to-pass-a-calculation-to-a-payment-field.