Get total value of selected options into another field

  • NickelCityCanine
    Asked on January 3, 2019 at 2:13 PM

    Hello,


    I am looking to create a form where users have to input information into a contract and once signed they can render a payment that is calculated.  This is for a dog rescue.  If the Dog is Birth-7 years old the fee is $350.  If the dog is not fixed prior to adoption an additional $150 is added.


    How can i set this up?

  • Mike_G JotForm Support
    Replied on January 3, 2019 at 3:53 PM

    I have checked your account and found the form I supposed you are referring to — Dog Adoption Fee.

    I have checked the form and I see that you have these fields.

    1546547941t15 38 48 Screenshot 10

    I see that you have also set up a Calculation Value for the "Birth-7 Years" and "Senior Dog" of the "My Adoption Fee is for a:" field.

    1546548202t15 42 37 Screenshot 21

    But not for the "Is the Dog you are Adopting already Fixed?" field, which, based on my understanding, should be like this — please see screenshot below.

    1546548426t15 46 23 Screenshot 32

    After you have set all the calculation value of each option, you can now add a Form Calculation widget to add the calculation value of the selected option.

    1546548700t15 50 03 Screenshot 43

    Related Guide: How-to-Perform-Form-Calculation-Using-a-Widget

  • NickelCityCanine
    Replied on January 3, 2019 at 4:43 PM
    Hi,
    How would you then connect that to a stripe or paypal payment? Also, can
    we include the processing fee or a flat fee?
    Nickel City Canine Rescue
    ...
  • Jed_C
    Replied on January 3, 2019 at 6:50 PM

    Please follow our guide below to integrate it with Stripe or PayPal. 

    PayPal integration — https://www.jotform.com/help/391-How-to-Integrate-Form-with-Paypal-Standard-

    Stripe integration — https://www.jotform.com/help/190-How-to-Integrate-Stripe-with-your-Form 

    To add fees or tax, please check our guide here https://www.jotform.com/help/296-How-to-Add-Tax-to-Your-Payment-Form.

    Let us know if you have any questions or if you need further assistance. 

  • NickelCityCanine
    Replied on January 3, 2019 at 9:43 PM
    Hi, So I cant take the form calculator and then add the stripe to set the
    payment amount?
    Nickel City Canine Rescue
    ...
  • Jed_C
    Replied on January 3, 2019 at 10:53 PM

    If you are trying to get the value from other fields, you will need to change the payment type of to "User defined" and capture the value then pass it on to your form calculation widget to calculate the total.

    The idea is like:

    Field 1 with assigned values 

    Field 2 with assigned values

    Form calculation, captures field 1 + field 2 value

    Stripe payment will be set to "User defined" and will grab the total of Form Calculation widget

    Kindly check if this guide https://www.jotform.com/help/275-How-to-Pass-a-Calculation-to-a-Payment-Field helps.