Configuring the Contact Selector in an InfoPath form

The Contact Selector is an ActiveX control which is installed with Microsoft Office 2007.
If you attempt to add the Contact Selector directly, publish the form, and test out selecting a user, when you click the OK button in the People Picker, you will receive an error.

The followings steps document how the Contact Selector should be added to a form to avoid the error:Open your form in Design mode in InfoPath 2007.Select View-Design Tasks from the menu.Click the Data Source link.Important Note: Spelling and capitalization are important. grpPerson is not the same as Person. Found that out the hard way.Right-click in the section where you want to add the control and select “Add…”. Specify a name. Set the Type option to Group. Do not check the repeating check box. Click OK to save.Right-click the new group added in the previous step and select “Add…”. For the name, type in Person. Set the Type option to Group. Check the repeating check box. Click OK to save.Right-click on the Person group and select “Add…”. For the name, type in DisplayName. Click OK to save.Right-click on the Person group and select “Add…”. For the name, type in AccountId. Click OK to save.Right-click on the Person group and select “Add…”. For the name, type in AccountType. Click OK to save.Drag the group created in step #5 to the location in your form where you want the Contact Selector to be displayed. A popup menu will display – select Contact Selector.Open an editor (I used NotePad++).Type in the following and replace yourservername: <Context siteUrl=”http://”/>Save the file as Context.xml.In InfoPath, select Tools-Data Connections from the menu.Click the Add button, check the “Create a new connection to” option, and check the “Receive data” option. Click the Next button.Check the “Xml document” option. Click the Next button.Browse to the location where you saved the Context.xml file and open it. Click the Next button.Check the “Include the data as a resource file in the form template or template part” option. Click the Next button.Enter the name Context. Click the Finish button.Save the form.Publish the form.
Don’t forget, you can also add mulitple contact selectors to an InfoPath form.

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