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

    Calculation inside of the form

    Asked by ianlowe on June 09, 2015 at 11:09 AM

    I am trying to use a very basic calculation to feed the PayPal integration widget.

    I want to charge a fixed amount for each golfer who registers for an event but don't know how many will register. I had assumed I could simply exploit the conditional logic to say if a certain field was filled then add an amount to the Calculated field. 

    For Example:  

    IF Players Name1 Is Filled 
    Insert {Calculation}+125 into Calculation

     

    However, this doesn't seem to work and the resultant value in the calculated field is dependent on the number of characters I type in to the text box.

    I guess it works some other way but it seems as though it would be a logical option.

    calculation
  • Profile Image
    JotForm Support

    Answered by BJoanna on June 09, 2015 at 12:30 PM

    If I understood you correctly you want to set value of 125 for each player and than calculate all players value inside of Calculation field.

    You can achieve that by adding one additional text field for each player and hide that field. Then you can set conditional logic to add value of 125 to hidden field if player field is filled. You need to do it for all Players and hidden fields. 

    When you set conditional logic for all fields you can use Calculation widget to calculate them.

     

    Here is a demo form I made http://form.jotformpro.com/form/51594840358968? 

    Feel free to clone it for closer look to my conditions. 

    Inside of this article you can find out how to pass calculation to payment form:

    http://www.jotform.com/help/275-How-to-pass-a-calculation-to-a-payment-field 

    Hope this will help. Let us know if you need further assistance.