How to add donation amount along with the price of selected items

  • TNNY
    Asked on April 15, 2024 at 3:19 PM

    Hello,

    I'd like to create a ticket order form with two ticket prices $25 and $50 along with an option to make a donation if unable to attend.

    How do I have the form calculate and populate the total amount in the stripe payment field. I've included a link to the form I started but I'm open to having it set up another way if that would work better.

    Thanks,

    Tom

  • Lesther JotForm Support
    Replied on April 15, 2024 at 6:29 PM

    Hi Tom,

    Thanks for reaching out to Jotform Support. You have to use the Form Calculation widget to get the total of the tickets and the donation. Then select this widget for the payment field to get the price form. Here are the steps:

    1. Add the Form Calculation widget and change the label.

    • On the Form Builder page, click on the Add Form Elements.
    • On the Form Elements, go to the Widgets tab.
    • Click on the Form Calculation to add.
    • The widget calculator opens on the right, click on the Add Field to select the fields to calculate the values and select the operations from the calculator keys.
      How to add donation amount along with the price of selected items Image 1 Screenshot 40
    • Click on the Save button once done.
    • To hide the field, right-click on it and then select Hide from the options.

    2. Select the widget in the Payment Settings to fetch the total amount.

    • Click on the Payment field to select and then click on the wand icon.
    • Under the Get the Price From, select the widget from the dropdown option.
    • Click on the Save button to finish.
      How to add donation amount along with the price of selected items Image 2 Screenshot 51

    Here's the screencast for reference:

    How to add donation amount along with the price of selected items Image 3 Screenshot 62

    Test my demo form on this link. Clone my form to own a copy and be able to see the entire setup. Here's the guide on How to Clone an Existing Form From a URL.

    Let us know if you have any other questions.

 
Your Answer