Form is Showing an Error if a Quantity is Not Added on the Product List

  • Hobes
    Asked on April 16, 2025 at 5:51 AM

    Hello,

    I have prepared a form using your system however when we are filling it in when the quantities are not filled it gives an error. I dont want that how can I fix this issue can you help me please?

    Kind Regards


    Jotform Thread 26233471 Screenshot
  • Sheena JotForm Support
    Replied on April 16, 2025 at 9:43 AM

    Hi Sinan, 

    Thanks for reaching out to Jotform Support. What you’re experiencing is expected behavior. When a product is selected and a sub-product is generated from one of the options, the quantity for that item initially remains at 0. Since the quantity field cannot be left blank or set to 0, the system prompts an error to ensure that a valid quantity is entered. To resolve this, users will need to select a valid option and enter a quantity before proceeding.

    Let us know if you have any other questions.

  • Hobes
    Replied on April 16, 2025 at 10:39 AM

    Dear Sheena ,

    Thanks for your response, however Imagine you re a customer and you only want to order a certain amount of the different sizes written in the options and doesn't want to order all size options so the ones which are not requested should remain 0 and not give any errors.

    Basically what we want is to be able to leave some or all quantity fields blank or 0.

    Thanks

  • Hobes
    Replied on April 16, 2025 at 10:40 AM

    Please let me know how can I fix the error issue.

    Thansk

  • Cristy JotForm Support
    Replied on April 16, 2025 at 11:12 AM

    Hi Sinan,

    I understand that your goal is to allow users to select only the product variants they want, without being required to enter a quantity for every option. Currently, in the Product List field with sub-products, the form expects a non-zero quantity when a sub-product option is selected. It’s not necessary to select all sizes, but once a product is selected, at least one size must have a quantity greater than zero. Check out the screencast below for example:

    Form is Showing an Error if a Quantity is Not Added on the Product List Image 1 Screenshot 20

    Let us know if you have any other questions.

  • Hobes
    Replied on April 16, 2025 at 11:26 AM

    Thank you Cristy. You re completely right but I would prefer to have error sign appear when ı click to submit, not before the selection ends. But if we do not have any option there's nothing to do.

    Thanks

  • Adrian Besilla JotForm Support
    Replied on April 16, 2025 at 11:44 AM

    Hi Sinan,

    The Product List field validates sub-product selections in real-time, and if none of the sub-product options is selected, it immediately shows the error even before form submission. Unfortunately, there’s no native way to delay that validation until the Submit button is clicked.

    Let us know if there's anything else we can help you with.

Your Answer