Choice field with maximum selections in InfoPath 2010

Applies to: InfoPath 2010

Learn how to create a group of check boxes and allow users to select a maximum of choices on an InfoPath 2010 form.


You have an InfoPath 2010 form with check box controls (choice fields) on it and you want to allow users to select a maximum amount of choices from those check boxes.

For example, if you have a group of 5 choice fields (check boxes), you want users to be able to select no more than 3 choices out of the 5.

An easy way to present a group of choices is to place a choice field in a repeating group. And then to allow users to select a maximum amount of choices from the group of choices, you can use data validation on the choice field.

Where InfoPath controls are concerned, you can place a check box within an InfoPath repeating table to simulate having a group of check boxes.

And to pre-define a fixed amount of choices (for example 5 check boxes), you can use the Default Values command in InfoPath 2010 and remove the ability to add rows to the repeating table.

Once you have the controls in place on the InfoPath form template, you can add InfoPath data validation to the check box within the repeating table to prevent users from adding more than a preset amount (3 in this example) of choices from the group of check boxes.

The following InfoPath 2010 tutorial video shows how to set up data validation on a check box in a repeating table to create a group of check boxes from which a maximum of 3 choices can be selected.


Related InfoPath Articles:


Copyright: This article may not be used on web sites (whether personal or otherwise), copied, disseminated, altered, printed, published, broadcasted, or reproduced in any way without an expressed written consent. The techniques demonstrated in this article may be used within any Microsoft InfoPath project. This article is provided without any warranties. Copyright for this article is non-transferrable and remains with the author.

InfoPath 2013 Cookbook: 121 Codeless Recipes for Beginners

InfoPath 2013 Cookbook 2: 121 Codeless Recipes for SharePoint 2013

InfoPath 2010 Cookbook: 101 Codeless Recipes for Beginners

InfoPath 2010 Cookbook 2: 101 Codeless Recipes for SharePoint 2010

InfoPath 2010 Cookbook 3: 101 Code Recipes for C# Developers

InfoPath 2010 Cookbook 4: 101 Code Recipes for VB Developers

InfoPath 2010 Cookbook 5: Integrating InfoPath with Excel and Excel Services