How to pass the total calculation into a payment field?

  • theSC
    Asked on October 3, 2017 at 3:04 PM

    I have just reviewed your response for copying a field's content to a Stripe field.  I have used conditional logic, but when I go to TEST the field, it doesn't work.    I want the TOTAL value (field 14) to total of order. (field 16)

    How to pass the total calculation into a payment field? Image 1 Screenshot 20

    Thanks.

    Stafon Levine

  • Mike_G JotForm Support
    Replied on October 3, 2017 at 4:05 PM

    To pass a calculation (total) into a Payment Field amount box, I suggest you see the information found in this guide — How-to-Pass-a-Calculation-to-a-Payment-Field

    I was able to verify the issue you are having on a clone version of the form I suppose you are working on — http://www.jotform.us/form/72725234684158

    As mentioned in the guide above, you need to have a Form Calculation widget to get the total.

    To get the total in the Form Calculation widget, you can follow the instructions in this guide — How-to-Perform-Form-Calculation-Using-a-Widget

    Then after that, set that Form Calculation widget as the "Get Price From" value of your form's payment field which is Stripe.

    Here's the clone version of your form where I have applied the changes:

    https://form.jotform.com/72756376655975

    Feel free to clone to form to your account so you can inspect it — How-to-Clone-an-Existing-Form-from-a-URL


    I hope this helps. If you have other questions or concerns regarding this, please do not hesitate to let us know.