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

    Can JotForm registration forms do math to determine a number of attendees?

    Asked by jacksonfreepress on March 04, 2016 at 04:21 PM

    I'm looking to offer a conference registration; if the form filler chooses "4" registrations on a form, can we charge them multiples of the ticket price to Paypal?

    For instance, the form filler choose 4 registrations from a drop down, and each registration is $50; can we charge them $200 via Paypal? Or would they have to choose the number of registrations and cost from a pull-down?

    Thanks!

     

    JotForm math charge ticket
  • Profile Image
    JotForm Support

    Answered by Boris on March 04, 2016 at 07:01 PM

    Yes, that us achievable in two main ways.

    1. The easiest and recommended way is through the PayPal payment tool. You can set up your PayPal field directly to allow selecting multiple tickets, by adding a Quantity option to your PayPal product (the ticket):

    http://www.jotform.com/help/225-How-to-add-options-to-Payment-Forms

    Here is a demo form:

    https://form.jotformpro.com/form/60636937550966

    2. The second method is if you are using a Drop Down field somewhere else on the form to see how many registrations a person will make. In this case, the setup is slightly more involved, but isn't complicated.

    First, we should assign calculation values to each of the options in the Drop Down field you are using. As the first option in a Drop Down field is always that empty one, if your options in a Drop Down field are:

    1 ticket
    2 tickets
    3 tickets
    4 tickets

    You would assign your values as:

    0
    50
    100
    150
    200

    Next, we use a Form Calculation widget to calculate the total price based on the Drop Down field.

    Finally, we pass this value to the PayPal payment tool for payment. Note that in this method, you would have to use the Custom Amount Payments option in your PayPal field.

    Please let us know if you need any further guidance, we are here to help.