Product List: Option to set the quantity selector to 0

  • Draleau
    Asked on June 19, 2024 at 4:47 PM

    I would like to make the product check boxes "invisible" and then allow the quantity drop down box to start at "zero". I know the developers made a change to prevent forms from being submitted without purchasing products, but this works for my business.

    Please provide a work-around so I can allow check boxes to be invisible and also allow product quantity to be zero.




    Jotform Thread 16081701 Screenshot
  • Rose JotForm Support
    Replied on June 19, 2024 at 5:01 PM

    Hi Kayleigh,

    Thanks for reaching out to us for help. Unfortunately, setting the default range dropdown/textbox quantity to 0 in the Product List is no longer possible. This update was recently implemented to prevent the submission of required products without being selected. However, setting the default quantity to 1 won't cause any issues if the product is not selected. Here's a screenshot showing that the ordered item will not be added to the order total if it's not selected even if the default quantity is at 1:

    Option to set the default quantity selected to 0 Image 1 Screenshot 20 Screenshot 20

    We can make the product checkbox invisible using CSS codes. However, doing it may cause issues because once the user changes the quantity of the item, they can't deselect it anymore if they change their mind. Check the screencast below for your reference, the item can't be deselected if the checkbox is not visible:

    Product List: Option to set the quantity selector to 0 Image 1 Screenshot 31

    Let us know if you need any other help.

  • Draleau
    Replied on June 19, 2024 at 5:05 PM

    I understand what you are saying, but I respectfully disagree that it doesn't cause any issues. The current setup is very non-intuitive. My form is able to be submitted without payment (this is how I want it). Furthermore, making the check boxes invisible with CSS is fine, as long as I can allow users to select a zero quantity. I'm requesting you guys to create a work-around for my form only? Surely there is an off-switch for my particular form?

    Thanks,

  • Gian JotForm Support
    Replied on June 19, 2024 at 5:25 PM

    Hi Kayleigh,

    None of your items are set up as a required field, in this case, even if the quantity selector is set to one, as long as it is not selected, the users can submit the form without payment.

    There's no workaround using the Product List field. The closest possible workaround is to use the Dropdown field instead. You can add the quantity numbers as the dropdown options and the item name as the field label. Check the example below:

    Product List: Option to set the quantity selector to 0 Image 1 Screenshot 60

    You can assign a calculation value for each option. The example below shows the calculation value assignment if each quantity costs 10.

    Product List: Option to set the quantity selector to 0 Image 2 Screenshot 71

    To capture the order total of the multiple dropdown fields, you can add a Form Calculation widget. To do so:

    1. In the Form Elements window, go to Widgets.
    2. Drag and drop the Form Calculation widget to your form.
    3. Add the dropdown fields in the formula box.
    4. Click Save.

    Product List: Option to set the quantity selector to 0 Image 3 Screenshot 82

    Here's the result:

    Product List: Option to set the quantity selector to 0 Image 4 Screenshot 93

    To pass the value of the calculation widget to Square, you can use the user-defined payment type and use the calculation widget as the price to get from:

    Product List: Option to set the quantity selector to 0 Image 5 Screenshot 104

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

 
Your Answer