Combining selected multiple checkbox questions

  • Profile Image
    nailson80
    Asked on June 21, 2016 at 10:54 AM

    I am working on a survey where I want to ask the user to select 3 options from 5 categories. Right now on the form each category is setup as a separate question using a checkbox list. I can limit the number of selections per question, but I'd like to limit the selections to 3 all together. So, if a user selects 3 options from the first question, they would no longer be able to select anything from the other 4 questions. I've tried using the built-in conditional logic but it doesn't seem to have anything to accommodate this situation. Another option that would work for me is having one long checkbox list and being able to insert a text heading between each group of options. If I could find a way to insert text between options in the checkbox list that would solve my problem.

  • Profile Image
    EltonCris
    Answered on June 21, 2016 at 12:03 PM

    You can actually do that using form calculation as a counter. So when the counter reaches to 3, you can simply hide the submit button so the user cannot submit the form and show a custom message informing them about the limits.

    Example:

    First, you have to define 1 as the calculation value of each option on the checkbox field properties.

    This way, every checked option is equivalent to 1. So basically, by adding all the checked options on all of the checkbox fields, you can easily identify if the user has reached the overall maximum limit.

    Then create a condition that if the counter is greater than 3, hide the submit button and show a custom message informing the user that the maximum limit has been surpassed.

    Demo: https://form.jotform.com/61724951903963

    Feel free to clone this form so you can check and figure out the setup.

    If you need further assistance, let us know.

  • Profile Image
    nailson80
    Answered on June 22, 2016 at 09:53 AM

    Thank you so much for your assistance. This is exactly what I needed.

  • Profile Image
    EltonCris
    Answered on June 22, 2016 at 11:06 AM

    You're welcome and glad it helps!