What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

  • Profile Image

    How can I force my users to select a specific number of items?

    Asked by shw528 on May 28, 2015 at 05:16 PM

    I want to require a specific amount.  In my Custom Produce Boxes form, I need the total number of items to equal exactly 8.  Right now I have some conditions setup to require it indirectly, but it doesn't work that well.  When I go to one tab, and then back to the 'Custom Produce Boxes' tab, it clears my '8 Items Check' field.  It would be so much easier to just require that my 'Total Items' box equal exactly 8.  Is there a way to do this?

    Page URL:

  • Profile Image

    Answered by raul on May 28, 2015 at 06:16 PM

    One way that I can think of to do this is simplifying your conditions to this one.

    Basically, the page break will be shown only when the total items is equal to 8. So your users will not be able to move back or forth unless they select 8 items.

    You can test this cloned version of your form: http://form.jotformpro.com/form/51476796704972 where this condition is implemented. If it works for you, feel free to clone the form to your account.

  • Profile Image

    Answered by shw528 on May 28, 2015 at 07:09 PM

    This may technically work, but it's not ideal.  The users could still navigate elsewhere using the form tabs.  If I remove the tabs and enforce your suggested logic, I think my customers would mostly just be confused.

    It would be much easier if I could just set the Form Calculation widget to require that the contents be less than, equal to, or greater than a certain value.  That way if they go above a certain value, that box will turn red and say "invalid value", much like when you try to exceed the max value of a spinner item.

    Can you please submit a feature request to have such conditions integrated as options within the Form Calculation widget?  This exact same logic could be used to enforce minimum order amounts (in dollars), as I submitted in a previous ticket.  I'm sure many other users would find this handy, too.

  • Profile Image

    Answered by shw528 on May 28, 2015 at 07:28 PM

    Per my original question, is there any way to prevent the '8 Items Check' field from clearing out when I switch between tabs?  This seems like a bug to me.

  • Profile Image

    Answered by raul on May 28, 2015 at 07:47 PM

    After further checking, I noticed that you're using a calculation widget to show the "Pass" message in your form and since the calculation widget expects a calculation this is why is not working correctly when you click the back button.

    However, you can use a regular text box field (configured to be read-only) to accomplish the same purpose.

    I created a second form here: http://form.jotformpro.com/form/51477588895983 that you can test if you want to. I've changed the calculation widget for the mentioned text box and the value is not lost when you click the back button.

    Regarding the feature request you're mentioning, please create a separate thread to ask for it and provide us as many details as you can so we can submit it to our development team.