How to have the sum of quantity field on a payment field?

  • Profile Image
    Asked 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:, 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.

  • Profile Image
    Answered on April 04, 2016 at 01:26 PM

    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:

    1. How-to-perform-calculation-in-the-form

    2. How-to-Assign-Calculation-Value

    3. How-to-pass-a-calculation-to-a-payment-field

    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.