Integrating the People Picker Control with Infopath 2007

Ever wanted to have a people picker kind of control in Infopath form and that too in browser mode. Did i heard yes 🙂 , well there is a Active-X control which takes care of this part named “”Contact Selector Control””.

Just follow the steps to get it working :

Add Contact Selector to Controls Pane
Click the “”Add or Remove Controls “” from the Control Task pane as shown in figure

Click ADDSelect Active-XThis will display a list of controls , select “”Contact Selector”” ,click NextSelect “”Don’t include a .cab file””From drop down select “”Field or Group(any data type) and 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 “”Perosn “” 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 .
Open Notepad and add the following Tag <Context siteUrl=""http://””/>Save the file as Context.xmlAdd new connection as “”Receive Type”” and source of data as “”XML””Option “Include the data as a resource file” shoule be enabled

Drag control to the form and you are all set .

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s