-
buddutAsked on September 20, 2019 at 5:37 PM
I have a calculated field that gives the number of selections for a user. I want to pass that to the PayPal payment (PayPal pro) and have it calculate the total based upon whether they are members or not and how many clases they have chosen. How do I do that?
I would also like to add an option to pay by check. How do I do that?
I
Page URL: https://form.jotform.com/92615331223145 -
Mike_G JotForm SupportReplied on September 20, 2019 at 7:46 PM
I created a cloned version of your form and set it up based on my understanding of your requirements.
https://form.jotform.com/92627008464964
May I suggest that you test the form and confirm if I was able to understand your concern correctly, please?
On that form, if someone selected "Check" as the payment method, here's what will appear on the submissions page.
However, if "PayPal" was selected, here's what will show.
You can find below the explanation of the changes I made to the cloned version to achieve the results above.
I have used regular form fields to represent the Months, Available Classes (member or non-member), and Payment Method. I have removed the calculation value for the "months" option but added a calculation value for the options in the "Available Classes" field instead.
After that, I have set up the calculation for the total in a Form Calculation widget.
How-to-Perform-Form-Calculation-Using-a-Widget
I have used the count() function to count the number of the selected option in the "Months" field, then multiplied it by calculation value of the selected option in the "Available Classes" field. Form-Calculation-Math-Function-Reference
I have also created a condition in the form that will hide the PayPal Pro payment field or the Pay by Check (Form Calculation widget) based on the selected Payment Method.
How-to-Show-or-Hide-Fields-Base-on-User-s-Answer
Lastly, I have set the payment type of the PayPal Pro payment field to User-Defined Amount and set the Form Calculation widget that calculates the total as the Get Price From of the payment field.
How-to-pass-a-calculation-to-a-payment-field
I hope this helps. If you have other questions or concerns, please do not hesitate to let us know.
-
buddutReplied on September 20, 2019 at 9:07 PM
This is perfect. Thank you.