JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
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.
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?
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):
Here is a demo form:
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:
You would assign your values as:
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.