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.

  • Profile Image

    The calculated amount that is passed to Stripe is being cleared upon submission

    Asked by eileenjst on August 22, 2016 at 03:29 PM

    In my form, I have a required 'session choice' field to select 1-4 sessions, each $20. That total is calculated (pre-cost field).

    When you select 4 sessions, another  hidden field appears($5 discount), for you to check and receive the discount. 

    The total is then recalculated  with the second visible 'Total Cost' calculation field and the value in the total cost calculation field is passed to Stripe.

    Those amounts all appears to be calculated and passed to the display in stripe payment.

    However, when I click 'submit', the calculated amount disappears during the submission and I get an error page that says the required 'session choice' field is blank. When I return to the form, all fields have the data entered except the choose your session field and calculation fields. They have disappeared.

    It seems when I click submit, Stripe is erasing the calculation and the choice of sessions.


    This is in test mode currently, which usually works for me in situations like this.


    Page URL:

  • Profile Image
    JotForm Support

    Answered by Welvin on August 22, 2016 at 05:07 PM

    Make sure to do not clear hidden field values when submitting the form. Go to Preferences > Advanced tab > Click "Show More" button > Set "Clear Hidden Field Values" to "Don't Clear":