What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

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

    Asked by IceMelt on January 18, 2016 at 06: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.


    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!!

    Page URL:
    https://form.jotform.com/60177084526154

    radio buttons payment form
  • Profile Image
    JotForm Support

    Answered by Welvin on January 19, 2016 at 03: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.