Get total value of selected options into another field

  • Profile Image
    NickelCityCanine
    Asked on January 03, 2019 at 02: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?

  • Profile Image
    Mike_G
    Answered on January 03, 2019 at 03: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.png

    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.png

    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.png

    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.png

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

  • Profile Image
    NickelCityCanine
    Answered on January 03, 2019 at 04: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
    ...
  • Profile Image
    Jed_C
    Answered on January 03, 2019 at 06: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. 

  • Profile Image
    NickelCityCanine
    Answered on January 03, 2019 at 09:43 PM
    Hi, So I cant take the form calculator and then add the stripe to set the
    payment amount?
    Nickel City Canine Rescue
    ...
  • Profile Image
    Jed_C
    Answered on January 03, 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.