Add people picker to repeating table in InfoPath 2010

Learn how you can add a person/group picker or people picker control to a repeating table control on an InfoPath 2010 form.

A people picker control or person/group picker control is an InfoPath control that is generally used in combination with SharePoint to retrieve and display account information for a particular SharePoint user.

The way you generally go about adding a people picker control to a repeating table control in InfoPath 2010 is the same way you would go about adding any other type of control to a repeating table control in InfoPath. However, there is a wrong way and a right way to do it.

The following InfoPath video shows you two ways to add a people picker control to a repeating table control on an InfoPath 2010 form. The first way is the typical but generally wrong way to do it (I'll show you how to correct the mistake) and the second way is the easiest and better way to add a person/group picker control to a repeating table.

In this InfoPath 2010 tutorial video, you learned...

  • The wrong way to add a people picker control to a repeating table control on an InfoPath form.
  • How to move a node in the Main data source to fix the "Control cannot repeat here" message on a control that has been placed in a repeating table.
  • The easiest way to add a person/group picker control to a repeating table control on an InfoPath form.

InfoPath 2010 video tutorial transcript

Here I'm in InfoPath Designer 2010, where I've already pre-created an InfoPath form template that has a repeating table control on it.

The way you can go about adding a person/group picker control to a repeating table control on an InfoPath form, is the way you would go about adding any other control to a repeating table control on an InfoPath form. First I'll show you the wrong way to do it and then how to correct, and then I'll show you the right way to do it.

So suppose you have the cursor here just after the repeating table. So I'll add a Person/Group Picker control to the InfoPath form. And then you'll see that the normal way to do it would be to just drag-and-drop this field within the repeating table control like this.

But then, as you can see, InfoPath will display this message here Control cannot repeat here. I've created a previous video about this message. What this message is basically saying is that the control, the field that is bound to this control is not part of field that is bound to the repeating table control. And if you look at the Main data source, you'll see that this group node, which pertains to the people picker control, lies outside of this group2 group node, which is the node that is bound to the repeating table control.

So what you would have to do is, you would have to place this group node under this group2 group node just like these field1, field2, and field3. And the way you can do that is you can use this Move menu item, and then select the group2 group node, and click OK. Then you'll see that this group node will become part of this group2 group node; it lies under it. And if you look at the form, the message has now disappeared.

The quickest and easiest way to add a person/group picker control to a repeating table control on an InfoPath form is by just clicking within the repeating table first, and then adding the control like this. And then you'll see that if you go here to the Main data source that this new group_1 has been placed directly under this group2 group node, so it is immediately part of the repeating table control.

So that is how you can go about adding a people picker control to a repeating table control on an InfoPath 2010 form.

See more InfoPath 2010 tutorial videos »

 


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