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.
I would like to calculate a payment field that is either the total based on the selections.Asked by randypotterschool on November 24, 2014 at 08:43 AM
You can use our Calculation Widget. Here's how you can do that: http://www.jotform.com/help/259-How-to-perform-calculation-in-the-form.
Now, for the deposit method, you can use our basic textbox field. This would serve as your input field for the deposit value. Then add another calculation widget to the form that would calculate the final result, total of all the selected fields minus the deposited amount.
Then you can pass this final result/amount to the Payment Integration field, follow the instructions on this guide: http://www.jotform.com/help/275-How-to-pass-a-calculation-to-a-payment-field.
Let us know if you need any further assistance about this method.
Thanks for your reply. Yes, I understand how to calculate based on what you say here, but what I'm trying to do is set the payment amount to be either the total or the deposit. NOT the total minus the deposit. For example, let's say we have three checkboxes as follows:
Box 1 - Value 350
Box 2 - Value 500
Box 3 - Value 425
If someone checks all three boxes, it would total 1275.
For the total payment field value, I want it to populate with either 1275 or 300, based on the value in another radio button field where they select either "pay in full" or "pay deposit only". (I believe your solution would net me the balance due of 975, but that's not really what I'm looking for here.)
Does this make sense?
Can this be done?
Thank you for the clarification.
Yes, that's possible. I've made an example form. Check this: http://www.jotformpro.com/form/43275524648966.
a. Total for Boxes is a calculation widget. All boxes are added into the calculation:
b. Total value is automatically added through conditional logic. Based on the Payment Scheme selection and value from the other fields, such as:
c. Total Payment is a calculation widget that sums up the Total field value:
Let us know if you have any further questions or if you need assistance implementing this to your form.
Perfect. Got it! Thanks for the thorough and helpful answer!
On behalf of my colleague, you're welcome.
Let us know if you need further assistance.