How to publish infopath forms as content type in sharepoint 2013?

publish infopath as content type
InfoPath alternatives for form designing SharePoint

In this post we will discuss how we can publish an InfoPath form as a content type in SharePoint 2013 site. Once we publish an infopath form as a content type, then we can reuse the template in multiple sharepoint list or libraries in the site as well as in the child site of that sharepoint site.

Also you can read:
– Deploy Administation approved InfoPath forms in SharePoint 2013

– SharePoint 2013 Online Content Search WebPart with Query String

– Generate URL using Calculated column in SharePoint 2013 List

Follow below steps:
First we will design a InfoPath form template. Open InfoPath Designer 2013. Before this make sure “SharePoint Server Enterprise Site Collection features” is already activated. You can go to Site Settings and in the Site collection feature under Site Collection Administration section, you can verify whether the feature is activated or not. If now activate the feature.

The other thing you need to verify is whether State Service is already started or not. We can verify this from Central Administration. Go to Central Administration -> Application Management Then click on Manage Service Application which is under Service Application section.

Now we can design our InfoPath form.

Once you open Infopath designer 2013, it will display lots of form templates which we can use to design InfoPath form. Apart from 2013, it will also show InfoPath 2010 templates.

Here choose a blank form template and then click on Design Form as shown in the fig below:

publish infopath as content type
publish infopath as content type

Now we can add our controls to the form. From the Insert tab we can choose to insert a table layout to the form. Here I have added a two-column layout. Once we will add this, we can see the layout in the form will appear like below:

how to publish infopath form in sharepoint 2013
how to publish infopath form in sharepoint 2013

We will design a simple Employee details form which has 3 text boxes and one option button with two options. The form will look like below:

sharepoint 2013 publish form as content type
sharepoint 2013 publish form as content type

By default if you will see the Fields section in the right site you will able to see by default InfoPath gave the name as field1, field2, field3 etc.

publish infopath form as content type sharepoint online
publish infopath form as content type sharepoint online

To give a valid name right click on the Control in the form and then click on Textbox properties. Then give a good name in the Field name box like below:

publish infopath form as content type sharepoint 2013
publish infopath form as content type sharepoint 2013

Now our form is ready, we can publish it now.

publish infopath form to sharepoint 2013 content type
publish infopath form to sharepoint 2013 content type

Click on File -> Publish and then click on SharePoint Server as shown in the fig below:

Then it will ask the form to Save before publish the form to SharePoint server. Click on OK and Save the form.

publish infopath form to sharepoint content type
publish infopath form to sharepoint content type

I have saved the form in my local desktop with the name as “MyEmployeeDetails”.

Then it will ask for the local SharePoint site like below:

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

Then in the next screen, choose the check box, Enable this form to be filled out by using a browser. So that people can open the form in the browser and submit the form. And then choose “Site Content Type (advanced)” option as shown in the fig below:

How to publish infopath forms as content type in sharepoint 2013
How to publish infopath forms as content type in sharepoint 2013

Then in choose Create a new content type and choose base content type as Form as shown in the fig below:

How to publish infopath forms as content type in sharepoint 2016
How to publish infopath forms as content type in sharepoint 2016

Then it will ask to give a name for the content type and a description for the content type as shown in the fig below:

How to publish infopath forms as content type in sharepoint 2010
How to publish infopath forms as content type in sharepoint 2010

Then we need to give a library and a file name where the form will be published.

How to publish infopath forms as content type in sharepoint online
How to publish infopath forms as content type in sharepoint online

Then we we can add the columns which will be available as columns in sharepoint site. Click on Add button and then choose the column and click on OK.

how to publish infopath to sharepoint 2013
how to publish infopath to sharepoint 2013

Here we can add all the columns and it will appear like below:

infopath form templates
infopath form templates

Then it will ask to verify the details and click on Publish button to publish the form.

Once the form successfully published it will display a successful message like below:

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

To validate this you can navigate to the form library and you can see the form there.

infopath forms sharepoint 2013
infopath forms sharepoint 2013

We can also go to the site settings and then click on Site content types which is under Web Designer Falleries. In the Site Content Types page, You can filter based on Microsoft InfoPath form and you can see our form is published as a content type as shown in the fig below:

infopath forms sharepoint 2013
infopath forms sharepoint 2013

Add InfoPath Content Type to a SharePoint library:
In the next step we will see how we can add the published infopath content type to a document library. Open your SharePoint site and then create a document library. Then open the document library and then from the ribbon click on library settings to go to document library settings page.

Then in the Library settings page, click on “Advanced settings” which is under General Settings section.

Then in the Content Types section choose, Allow management of content types? to Yes as shown in the fig below:

infopath forms sharepoint 2016
infopath forms sharepoint 2016

Then in the document library settings page, go to the Content Types section and click on Add from existing site content types as shown in the fig below:

infopath forms sharepoint 2013
infopath forms sharepoint 2013

Then in the Add Content Types page, choose Microsoft InfoPath group and then from the type select the content type and click on Add. Then click on OK.

infopath sharepoint 2016
infopath sharepoint 2016

Then go to the document library, From ribbon click on Files -> New Document and then you will see our content type which we have deployed like below:

infopath form templates
infopath form templates

Once you will click on the option the InfoPath form will open like below:

publish infopath as content type
publish infopath as content type

Hope this post will be helpful.

Similar SharePoint 2013 Tutorials

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →

Leave a Reply