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

  • scommand
    Asked on April 4, 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.

  • Kiran Support Team Lead
    Replied on April 4, 2016 at 1: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.

    https://form.jotform.com/60945664965976

    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.