How do I put a limit on my order form?

  • basicbeautybox
    Asked on June 19, 2017 at 5:14 PM

    I have created an order form, and in the checkbox section, I want to make sure people can only pick up to 3 options. How do i do this please?

    Thanks!

    Shan

  • Kevin Support Team Lead
    Replied on June 19, 2017 at 8:48 PM

    It is not possible to set the limit on the payment integration settings, but it is possible to count the number of selected items and show a message indicating when more than 3 have been selected, you could also hide the submit button so the user does not submit the form. 

    To achieve it you will need to first add the Form Calculation widget to your form: 

    How do I put a limit on my order form? Image 1 Screenshot 40

    Once added you will need to add the count() function and include the payment integration: 

    How do I put a limit on my order form? Image 2 Screenshot 51

    This guide will provide you more information about the math functions: https://www.jotform.com/help/267-Form-Calculation-Math-Function-Reference 

    Here is an example about what the calculation widget will return: 

    How do I put a limit on my order form? Image 3 Screenshot 62

    This guide will also help you showing the message using a text field and/or hiding the submit button: https://www.jotform.com/help/316-How-to-Show-or-Hide-Fields-Base-on-User-s-Answer 

    Hope this helps.