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.
How to have the sum of quantity field on a payment field?Asked by scommand on April 04, 2016 at 11:07 AM
Dear Jotform engineers, good morning.
I need your help regarding the integration of Stripe and JotForm.
On the form: https://form.jotform.com/60934560313148, last part, I need to extract from the field of Stripe (above the credit card area) the total number of tables (and not the cost of all the tables). For example if somebody gets 1 Gold Table, and 2 silver tables, I need to know total = 3 tables - or if it is not possible, the total of Gold tables, the total of Silver tables, the total of Bronze tables and finally the total of Regular tables. How can I do it? I've been trying for a while, and no success.
I understand that you want to have the sum of quantities selected on the payment field. Unfortunately, it is not possible to calculate the sum of quantity option from the payment field. However, a workaround can be using native fields to calculate the total instead of using Payment tool. You may assign calculation values to the fields and calculate the total to pass it to Stripe. Please refer to the guides below:
Please check the demo form below that can help you understanding this workaround.
You may clone this form to your account and see how the calculations are set.
Hope this information helps! If you need any further assistance, please let us know. We will be happy to help.