How do I stop every submission from forwarding to PayPal if a user doesn't select that option?

  • Profile Image
    Asked 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?

  • Profile Image
    Answered on December 08, 2016 at 12:46 PM

    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:

    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)

    I would also suggest you create a clone of that form so it will be saved in your account for you to inspect. Please note that I have assigned calculation values for the following fields below.

    - 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.

  • Profile Image
    Answered on December 13, 2016 at 10:58 AM

    Thank you so much, this was so helpful!

    JotForm never ceases to have incredible customer service, I will be sure to spread the word. :)