Cognito Forms logo

How can I limit the number of checkboxes a user can select?

Monday, September 19, 2016 2:17:00 PM

To limit the number of checkboxes that a user can select from a Choice field:

  1. Open your form builder and select the Choice - Checkboxes field.
  2. Select Show Custom Error - When in the field settings.
  3. Click the Advanced Editor tab and insert the following expression: =(Checkboxes.Count() > 3) Make sure to change "Checkboxes" to the name of your Choice field, and "3" to the maximum number of checkboxes that can be selected.
  4. Click Save.
  5. Write the custom error message that appears when a user tries to select more than the specified number of options.


Printable View