How do I put a limit on my order form?

  • Profile Image
    basicbeautybox
    Asked on June 19, 2017 at 05: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

  • Profile Image
    Kevin_G
    Answered on June 19, 2017 at 08: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: 

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

    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: 

    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.