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.
How do I stop every submission from forwarding to PayPal if a user doesn't select that option?Asked by dlipenta on December 08, 2016 at 09:29 AM
My form offers a PayPal or cash on delivery option, and I set up an conditional Thank You page for the cash option, but every user is sent to PayPal regardless. The users who select cash think their order hasn't gone through, and it's marked as an Incomplete Submission, so I don't get notified. Why isn't the Thank You page or conditional setting working?
Your form will always be redirected to the PayPal's page to process payments as long as there is a selected product item in the PayPal payment field or the total amount value is greater than 0.
I understand that you are using the payment field to collect orders and there is a workaround where you can use normal form fields to collect orders and generate a total amount of products that were selected using conditional logic.
The total amount (for example from a textbox field) can then be passed to a Form Calculation widget so it can be passed to the PayPal payment field after. You can do that by following the instructions in this guide: https://www.jotform.com/help/275-How-to-Pass-a-Calculation-to-a-Payment-Field
Once you have that all set, you can create a condition that will show or hide the PayPal payment field depending on the mode of payment selected by your respondents. If your respondents select "Cash on Delivery" the PayPal field will be hidden then leave the Form Calculation widget with the total amount shown. And if they select "Secure Payments with PayPal", the PayPal field with the amount passed from the Form Calculation widget will show instead.
Please do note that when the PayPal field is hidden, your respondents will not be redirected to the PayPal's page to process their payment.
To show you how it works, I have created a sample form below that I would like for you to test. (I have set a PayPal sandbox account for my PayPal payment field)
- How many Whiskey Cake? dropdown field
- How many Star of David Whiskey Cake? dropdown field
- Local Delivery Needed? $3.00
If the form suits your requirements and you need assistance in creating it, please do not hesitate to get back to us and let us know.
Thank you so much, this was so helpful!
JotForm never ceases to have incredible customer service, I will be sure to spread the word. :)