Introduction:
I have a custom List named Employee Details which contains the following columns
![InfoPath Web Part in SharePoint 2010]()
I have customized the list forms using InfoPath 2010 and the form looks like the
following
![list forms using InfoPath 2010]()
And I have modified the view for the Employee Details list as shown in the
following
![list forms using InfoPath 2010]()
In this article we will be hosting the forms in a Web Part inside any Web Part
page and will be creating an list view web part in the same page. Then we will
use the connections between the Web Parts to interact with other components on
the page.
Create Web Part Page:
- Open SharePoint site.
- Go to Site Actions => More Options...
![Create Web Part Page sharepoint]()
- In the left task pane, select Page.
- Click on Web Part Page and then click on
Create.
![Create Web Part Page sharepoint]()
- Enter the Name for the page and click on
Ok.
- The page looks like the following
![Create Web Part Page sharepoint]()
Create List view web part:
- In the web part page click on Add a Web
Part.
- In the Categories section, click on Lists
and Libraries and then click on Employee Details.
![Create List view web part sharepoint]()
- Click on Add.
Create InfoPath Form web part:
- In the web part page click on Add a Web
Part.
- In the Categories section, click on Forms
and then click on InfoPath Form Web Part.
![Create InfoPath Form web part sharepoint]()
- The web part looks like the following
![Create InfoPath Form web part sharepoint]()
- Click on Click here to open the tool pane
to select the form.
- In the tool pane, select Employee Details
from drop down in List or Library.
![Create InfoPath Form web part sharepoint]()
- Select Item from the drop down in Content
Type.
- Click on Ok.
Connecting the web parts:
- In the InfoPath Form Web Part, click on
the down arrow.
- Click on Connections, then click on Get
Form From and click on Employee Details.
![Connecting the web parts Sharepoint]()
- On the Page tab click on Stop Editing.
![Connecting the web parts sharepoint]()
- On the Page tab click on Stop Editing.
- Click the icon next to the First name in
the Employee Details list, the details for that employee will appear in the
InfoPath Form Web Part.
![Connecting the web parts sharepoint]()
Conclusion:
In this article we have seen how to create an InfoPath form web part.