Conditions with Paypal Quantity Product

  • Trench_Trophy
    Asked on April 1, 2025 at 1:54 AM

    I am using Paypal Checkout, I have multiple products available for purchase. There is a condition to hide a page requesting artwork to be uploaded for a sponsor sign.

    The customer gets a free sign if they purchase 4 golfers. The upload page is hidden if less than 4 golfers are selected.

    The other scenario is that golfers can pay for less than 4 golfers, but also buy a sign for $100. To use a Paypal item with conditions it needs to use the quantity field, but that field doesn't support 0. So because it defaults to one, the conditions have no way of hiding the upload page because the default is 1.

    To recap:

    • I want to show the artwork upload page only when:
    • 4 golfers are purchased (free sign), OR
    • a $100 sponsor sign is purchased.
    • BUT:
    • The PayPal quantity selector defaults to 1 and can’t be set to 0.
    • That messes up conditional logic because the sign is always showing as “selected.”

    How do I fix this?

  • Rene JotForm Support
    Replied on April 1, 2025 at 10:17 AM

    Hi Trench_Trophy,

    Thanks for reaching out to Jotform Support. I’ll need a bit of time to look into this. I’ll get back to you as soon as I can.

    In the meantime, let us know if you have any other questions.

  • Rene JotForm Support
    Replied on April 1, 2025 at 4:07 PM

    Hi Trench_Trophy,

    To achieve your goal, you just need to make some changes to your form, especially the condition you set to skip the artwork upload page, and the product selector from your form's Product List page. Let's start with the condition:

    1. In Form Builder, in the orange navigation bar on top of the page, click on Settings.
    2. In the menu on the left, go to Conditions.
    3. Hover your mouse over the condition to Hide a Page, and then click on the Pencil icon on its right.
    4. In the IF dropdown on the green banner, select Any, and then click on Save at the bottom of the page once done.

    Conditions with Paypal Quantity Product Image 1 Screenshot 40 The steps above will make sure that if any of the conditions set to Product List is met (i.e., purchasing that first to items with less than the intended quantity), the artwork upload page will stay hidden. It initially didn't work at first because it is set to All, which forces the condition to only work if all the values are met, and not just any of them.

    Now, we can proceed with the Product List field. The only thing we need to do is to remove the default selection of one of your items, so none will be automatically selected when accessing your form for the first time. That way, the condition set to it along with the artwork upload page can work properly. Here's how to do it:

    1. In Form Builder, click on the Product List field, and then click on the Wand icon on its right to access it settings.
    2. In the Payment Settings on the right, hover your mouse over the default product, and then click on the Pencil icon.
    3. Toggle Selected by Default to disable it.
    4. Click on Save at the bottom to apply the change.

    Conditions with Paypal Quantity Product Image 2 Screenshot 51 Note that even if items in the Product List field have a default value of 1 to their quantity selector, that doesn't mean that they are automatically valued as such, or selected to be purchased. Unless it is selected manually by checking the product, that's the only time the quantity will be triggered, regardless if it's changed to a different value, or left to 1. That means, conditions will still work even if that's the case. Check out the result below:

    Conditions with Paypal Quantity Product Image 3 Screenshot 62 Give it a try and let us know if you need any other help.

  • Trench_Trophy
    Replied on April 1, 2025 at 5:15 PM

    Thank you!


    This almost works, but I can't use "Any" for the the IF Dropdown because there is a scenario where someone could book 1-3 golfers and then add a hole sponsorship, which isn't included under 4 golfers. In that scenario, the artwork upload doesn't show because it gets hidden on the 1-3 golfers chosen.

  • Elton Support Team Lead
    Replied on April 2, 2025 at 4:47 AM

    Hi Trench_Trophy,

    I found a workaround based on your description. Let me show you how to set it up:

    1. Add two Form Calculation widgets into your form. You can label them Golfer & Sponsor then hide these fields, right-click then select Hide, so they're not visible in the preview.

    Conditions with Paypal Quantity Product Image 1 Screenshot 50

    2. Add two Update/Calculate a Field conditions in your form and set them like these:

    Conditions with Paypal Quantity Product Image 2 Screenshot 61

    Conditions with Paypal Quantity Product Image 3 Screenshot 72

    3. Finally, update the existing hide page condition that you have with the following.

    Conditions with Paypal Quantity Product Image 4 Screenshot 83

    Here's my demo form that shows how this works. It only shows the Artwork page when 4 Golfer Registration (Before July 1st) is purchased or when Hole Sponsorship is also selected.

    Give it a try and let us know if you need more help.

Your Answer