Calculate radio button options and forward the total to payment fields like Stripe

  • IceMelt
    Asked on January 18, 2016 at 6:17 PM

    https://form.jotform.com/60177084526154

    1. How can I calculate a price based on Radio Button selection?

    I need to figure out how to price the Radio Button selected to update a price "total" field to be charged via a payment system? We were thinking of using Authorize.net, Stripe or Paypal...
     
    For example, if they select 1 entry, I want the form to charge $5, if they select 5 entries, the form will charge $20 and if they choose 30 entries it will charge $100. Is there a way to "price" these three radio buttons that are using the conditional logic to show the number of guesses chosen?
     
    2. Also, can this form not submit the data into the database until a payment has been successfully made?(via Authorize.net, Stripe or Paypal?) We don't want "entries" to go into the database if they have not been paid for.


    Calculate radio button options and forward the total to payment fields like Stripe Image 1 Screenshot 20

    Sorry to post this question more than once, I responded to some earlier questions and wasn't sure if they already had a response that they would still be looked at by your tech support, so I thought I'd post a question with only this need.  Thanks for all your help!!

  • Welvin Support Team Lead
    Replied on January 19, 2016 at 3:22 AM

    My colleague gave you the steps on how to calculate the values, here's the thread: http://www.jotform.com/answers/748060-How-to-Calculate-selected-Radio-option-to-Update-Total.

    If you wish to forward the total to payment integration, please follow our steps here: http://www.jotform.com/help/275-How-to-pass-a-calculation-to-a-payment-field.

    As for getting the submissions into the database, that is the default flow of the form. If payment is not made, no data will be added to your form submissions page.