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

    Implimenting Total Modifier

    Asked by jjhosac on April 30, 2015 at 01:41 PM

    I am trying to add an option to accept donations as a percent of the total purchase. How would I use conditions or calculations to modify the total when a donation option is selected by the user?

    calculations purchase donation selected
  • Profile Image
    JotForm Support

    Answered by david on April 30, 2015 at 03:00 PM

    Hi,

    You could add a field asking if they would like to make a donation.  Then associate the "No" option with a calculation value of 0 and the yes option with a calculation value of your percentage:

    Then setup your calculation to take your total and multiply it your percentage, then add that number to your total:

    Here is my test form so you can see the setup working in your form:

    http://support.jotform.com/form/51195892713967

    http://www.jotform.com/help/42-How-to-clone-an-existing-form-from-a-URL

    It is currently adding 3% but you can adjust this value to whatever you would like.

    If you have any further questions or need any help getting this setup in your form, let us know and we will be happy to help.

  • Profile Image

    Answered by jjhosac on May 04, 2015 at 12:32 AM

    That was a huge help but I modified the form slightly to make it look cleaner. I am still having issues getting the total to change so the user can see the total prior to submission. Thank you for taking your time to help me out. Rather than having 2 separate fields, I just posed the question with radio buttons to simplify the form and the process for myself as well.