Product error: Quantity cannot be less than 1

  • aozoragaoka2020
    Asked on March 26, 2024 at 12:10 PM

    users need to select the item before they can see the sub-category and almost as soon as they select the item, error message show up saying that quantity cannot be less than 1. it is quite inconvenient since they don't even get to take a look and the error message for sure affects the user experience(especially for users that don't speak English) please consider to allow default value as 0 again or remove the quantity checking, and consider showing showing production options without the need of selecting the product, thank you.

  • Jason JotForm Support
    Replied on March 26, 2024 at 12:47 PM

    Hi aozoragaoka2020,

    Thanks for reaching out to Jotform Support. Are you referring to this form 240450626245451? If yes, the quantity range can't be changed to 0 as a default first number. The default value number of quantity always starts at 1 and up. Check out my results in the screencast below:

    Product error: Quantity cannot be less than 1 Image 1 Screenshot 30 As you noticed in the short clip above, the first number starts at number 1, and it's grayed out, indicating that it is a default value number to begin with. On the other hand, the error shows when the form responder selects a product without choosing a sub-category or the quantities of the product. Check out my screencast below:

    Product error: Quantity cannot be less than 1 Image 2 Screenshot 41 Your customers always need to make sure they select the quantity to proceed in checking out the order product that they want.

    Let us know if you have any other questions.

  • aozoragaoka2020
    Replied on March 27, 2024 at 10:15 AM

    Hi Jason,

    Thanks for the reponse.

    Here are some issues my customers face:

    1. It appears that Jotform doesn't support error message in Mandarin and therefore it is hard for some of they to understand what goes wrong.
    2. They are not able to see the full list of all sub-category for all products in the first place and if they select the first product without choosing the quantity and decide to take a look at the second product, the error message they might not understand appears.

    I would like to know:

    1. Is there a way to show all the sub-category in the first place?
    2. Can we make the quantity checking when they submit the form?
    3. Will Jotform support error messages in Mandarin in the near future?
  • Victorino_S JotForm Support
    Replied on March 27, 2024 at 10:50 AM

    Hi aozoragaoka2020,

    Thanks for getting back to us. Are you referring to the product option in the Product List field? If so, yes, we can inject a custom CSS code to display them without selecting the product. Here's how to do it:

    • Click the Paint Roller icon on the top-right of Form Builder.
    • Go to the Styles tab.
    • Scroll down to the Inject Custom CSS section and add the following CSS code:
    /* Display the product option by default | Thread: 13288411 */
    .form-product-child-table { 
      display: block !important;
    }
    /* END */

    Product error: Quantity cannot be less than 1 Image 1 Screenshot 20


    You can test my demo form or clone it to see the changes made in the cloned form. As for your second question, I've moved that to a new thread. You can check that out here. I also moved your other question to a new thread and helped you with that here.

    If that’s not exactly what you’re looking for, can you explain a bit more so I can help you better? 

    Let us know if you need any more help.

  • aozoragaoka2020
    Replied on March 27, 2024 at 11:57 AM

    Thanks for showing how to make sub-category appears. It works well.