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

    How can I pre-populate a field in the Payment section with a field in the main form?

    Asked by Suzuki98 on May 31, 2017 at 01:42 AM


    I have a registration form where the user enters, for example:

        Number of A students

        Number of B students

    In the payment section, the user needs to enter the Number of A students and Number of B students (again) to calculate the total cost.  How can I pre-populate the fields in the Payment section?

    I am trying to use the attached Conditional form.


    When I hit the pulldown on the "IF", I see my payment fields, for example:

    fees:Number of A students (Quantity Products)


    However, when I pulldown the "TO" , I do not see this choice.  

    I want to copy the '19. Number of Enrolled Students'  to this field in the Payment section.



  • Profile Image
    JotForm Support

    Answered by candy on May 31, 2017 at 03:17 AM


    It is not possible to prepopulate payment gateway inputs with conditions. The only way is using Form Calculation Widget in order to send values to the payment gateway. For further detailed information please check the following guide: https://www.jotform.com/help/259-How-to-Perform-Form-Calculation-Using-a-Widget 

    Besides, I have cloned your form named "Camp Student Registration Form" on my side in order to check it. 

    If you want to accomplish prepopulating payment gateway, you should create the products with multiple choice fields and set calculation values as prices as you can see in the following guide: https://www.jotform.com/help/301-How-to-Assign-Calculation-Value After set a form calculation widget in order to calculate their payment. And then, In order to get total calculation value from a form calculation widget, you need to set user defined amount option in the payment gateway.

    All in all, you should change your form logic.

    If you need further assistance, let us know.