InfoPath form library SharePoint 2013/2016/Online

This InfoPath SharePoint tutorial explains how to work with InfoPath SharePoint form library in SharePoint 2013/2016 or SharePoint Online. I will show how to publish InfoPath form as a content type in SharePoint 2013/2106/Online.

Here I have taken one scenario, Our business requirement is to customize a library form in SharePoint InfoPath 2013 designer. We want to use that library form in multiple SharePoint document library.

Suppose I have designed an “Expense Report” library form using different Controls and Rules of ShareharePoint InfoPath 2013 designer page. This form I want to see in multiple “SharePoint library”. So for that when we publish a library form instead of selecting “Form Library” to select the Content Type (advanced).

In this article, we will discuss how to publish customized a library form in InfoPath designer to SharePoint 2013/2016/Online.

Design Library form using InfoPath Designer 2013 in SharePoint

Open InfoPath Designer 2013, Choose SharePoint Form Library template and click on Design Form.

Then I have designed an “Expense Report” form in “Library Form” using different “Controls” and “Rules” of Infopath 2013 designer.

publish infopath form to sharepoint online
publish InfoPath form to SharePoint online

Publish InfoPath form to SharePoint library

Once we design the InfoPath form, now we can publish the form to form library in SharePoint Online/2013/2016. To publish the Library Form in SharePoint InfoPath Designer 2013, click on File -> Publish -> SharePoint Server.

publish infopath form to sharepoint library

Give the site URL in the “Enter the location of your SharePoint or InfoPath Forms Services site” box and click on “Next“.

publish infopath form to sharepoint online
publish InfoPath form to SharePoint online

Then in the Publishing Wizard, it will ask “What do you want to create or modify?”

  • Form Library
  • Site Content Type
  • Administrator-approved form template (advanced)

Here we will publish InfoPath form as a Site Content Type, Select the Site Content Type (advanced). Click on Next.

publish infopath form to sharepoint 2013
publish InfoPath form to SharePoint 2013

Now we can see “What do you want to do”. Here we can see

  • Create a new content type
  • Update an existing site content type

I want to use the Update existing site content type. So I have click on “Update an existing site content type“. Click on “Next”.

customizing sharepoint list forms in infopath 2013
customizing SharePoint list forms in InfoPath 2013

Here we will see “Specify a location and title name for the form template“. To give the Location and File name for form template click on Browse.

change content type infopath form
change content type InfoPath form

In the Browse page, we can able to see “All Site Content” of SharePoint site. Chose any one of Library from the list and give a file name.

Here I have given the file name as “ExpenseReport” and Click on Save.

publish infopath form to sharepoint online
publish infopath form to sharepoint online

Now in the “Specify a location and file name for the form template” box, we can able to see our SharePoint form library location is already attached in the box Click on “Next“.

publish infopath form to sharepoint 2010
publish infopath form to sharepoint 2013

Here we can promote SharePoint columns which we want those columns to appear in SharePoint views. You can add few columns. Click on “Next”.

 change content type infopath form
change content type infopath form

Then Click on “Publish“.

publish infopath form to sharepoint 2010
publish infopath form to sharepoint 2013

We can able to see Your form template was published successfully to SharePoint 2013/2016/Online, then close the form.

We can able to see in blue color Open this form in the browser.

publish infopath form to sharepoint online
publish infopath form to sharepoint online

Click on Open this form in the browser we can able to see our library form but we could not able to see the Save option. The library form is content type so when we add the form in any library we can able to find out the Save option.

publish infopath form to sharepoint 2010
publish InfoPath form to SharePoint 2016

Add InfoPath Content type to SharePoint Forms Library

Open the SharePoint Online/2013/2016 site Click on “Site Settings“.Select the “Site Content Types“.

Select the “Microsoft InfoPath” from “All Groups“.

Click on “Microsoft InfoPath“.

publish infopath form to sharepoint online
publish InfoPath form to SharePoint online

When we click on Microsoft Infopath, We can able to see our Customized Library form name in the “Site Content Types“.

change content type infopath form
change content type infopath form

Open any of SharePoint document library in which we want to add the Customized Library form.

Click on “Library Settings” from Ribbon.

publish infopath form to sharepoint online
publish InfoPath form to SharePoint online

Click on “Advanced Settings“. In the “Advanced Settings,” page enable yes of  “Allow management of content types“. Click on OK.

publish infopath form to sharepoint 2010
publish InfoPath form to SharePoint 2016

Click on “Add from existing site content types” from the SharePoint library settings page.

change content type infopath form
change content type infopath form

Now we can able to see the list of all content type of SharePoint site. Select the Content type which we want to attach to the library.

Here I want to add “Expense Report” content type to the list to select the content type and click on Add. Now we can able to see the selected content type add to the “Content types to add” box. Then Click on OK.

publish infopath form to sharepoint 2010
publish infopath form to sharepoint 2010

Open the SharePoint Library. Click on “New” then click on “New Document“.

We can able to see two option.

  • Form
  • Expense Report

The form is our normal form and Expense Report is content type form. I have click on “Expense Report” (content type).

infopath form library sharepoint online
infopath form library sharepoint online

We can able to see the content type form. I have put some data and for saving the data in a library click on Save.

publish infopath form to sharepoint library
publish InfoPath form to sharepoint library

When we put the item in the form and click on Save then the item is saved in a file format. Here I saved the item in “ExpenseDetails” file name.

publish infopath form to sharepoint online
publish InfoPath form to SharePoint online

In the “EmployeeProfessionalInformation” we can see “ExpenseDetails” file, in which our library form data is saved in the SharePoint site.

change content type infopath form
change content type InfoPath form

You may like following InfoPath SharePoint tutorial:

  • How to publish an InfoPath form to an email in SharePoint 2013?
  • Deploy Administration approved InfoPath forms in SharePoint 2013
  • Publish InfoPath Form to SharePoint Online Office 365 Step by Step Tutorial
  • Make attachment field mandatory in InfoPath Designer 2013 in SharePoint Online list
  • InfoPath 2013 show hide section using Rules in SharePoint online
  • Limit attachment size in InfoPath 2013 SharePoint online
  • InfoPath 2013 multiple attachments
  • InfoPath cannot save the following form access denied SharePoint Online

Conclusion:

This SharePoint InfoPath tutorial explains, how we can create and customize SharePoint library form using InfoPath designer 2013.

Then I have explained how we can publish InfoPath form as a content type in SharePoint 2013/2016/Online. Then how we can add InfoPath Content type to any SharePoint document library.

>