- jjhosacAsked 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?
- JotForm SupportdavidAnswered on April 30, 2015 at 03:00 PM
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:
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.
- jjhosacAnswered 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.