How to auto populate InfoPath forms using the people picker
By peter.stilgoe
Step 1:Add the Contact Selector control to InfoPath – this only has to be done once within InfoPath, then it will be available for future forms.
1. From the Controls task pane, click on “Add or Remove Custom Controls…” then click Add.
2. Select “ActiveX Control” then click Next.
3. Locate “Contact Selector” in the list, select it, then click Next.
4. Ensure “Don’t install a .cab file” is selected, click Next.
5. Set the Binding Property to “Value”, click Next.
6. In the drop-down menu for field or group type, select “Field or Group (any data type)” then click Finish.
7. Click Close, click OK.
Step 2: Add a data connection – this must be done for each new form created.
There is some preliminary work here, first you have to create an XML file and save it. Open notepad and paste:
More From pstilgoe
autopopulate , InfoPath , infopath tips & tricks 


January 27th, 2010

Hi,
Thanks for the post it has saved me heapful of work to be done from my end. I was wondering if you could help me in my situation. I have developed an Infopath2010 form on my Dev server and have included the logic you explained in the above article for retrieving the User details based on selection in PeoplePicker.
Now when I need to move the whole of my Infopath form to aa new server (that is used as Production server), which is disconnected from this Developement server. I have packaged the form in a feature and moved it over as it contains a code-behind. How do I move Content.XML along with it? other connections are easy to move using UDCX files.
Please help urgently.
Regards
Pooja
[Reply]
Hi — You refer to an illustration in Step 3, item 3,for modifying the data source, but I don’t see one. Can you supply this?
Thanks
[Reply]