Use a People Picker Control in InfoPath 2007
Default there's no People Picker control in InfoPath, however you can get a People Picker control, even in browser mode.
There is a Active-X control which takes care of the part named "Contact Selector Control".
Add Contact Selector to Controls Pane
-
On the bottom choose "Add or Remove Custom Controls"
-
Click "ADD"
-
Select Active-X
-
Select "Contact Selector", click Next
-
Select don't include a .cab file
-
From the dropdown field select "Field or Group (any data type)
-
Click Finish
DataSource for the Contact Selector control
-
Add non Repeating group named "group1"
-
Add a repeating Group names "Person"
-
Add following test field to the "Person" group (DisplayName, AccountId, AccountType)
Add Secondary datasource XMl file with details about the SharePoint Server, this is required by the form in order to validate the user against a particular sharepoint server.
-
-
Save the file as Context.xml (! Case Sensitive !)
-
Add new connection as "Receive Type" and source of data as "XML"
-
Option “Include the data as a resource file” shoule be enabled
Do you want to use more then one people picker in your form?
-
Create a new group for the new contact
-
Right click on the exiting Person group
-
Click reference and point it to the new group
-
That will copy the person xml structure under the new one