How to publish an InfoPath form template as a new SharePoint site content type
This article provides the steps required to publish an InfoPath form template as a new content type on a SharePoint site.
You have an InfoPath form template, which you want to publish once and then reuse it on multiple SharePoint form libraries across multiple SharePoint sites.
Publish the InfoPath form template as a Site Content Type on a SharePoint site, so that it can be reused on form libraries in any child site of that SharePoint site.
To publish an InfoPath form template as a new SharePoint site content type, you must:
- Create a document library in SharePoint to store the InfoPath form template or store it in an existing document library.
- Publish the form template as a new content type.
- Create a SharePoint form library and add the content type to it.
1. Create a document library in SharePoint
In SharePoint, create a Document Library to store InfoPath form templates that will be used as content types. Create this document library on the same site on which you want to create the content type.
Note: While you could create this document library on any site within the SharePoint site collection, it makes sense to keep it on the same site as the content type for ease of maintenance.
2. Publish the form template as a new content type
- In InfoPath, from the File menu, choose Publish.
On the Publishing Wizard, select To a SharePoint server with or without InfoPath Forms Services, and click Next.
Figure 1. The Publishing Wizard screen in InfoPath where you select to publish the InfoPath form to a SharePoint server
On the Publishing Wizard, enter the URL to the site or subsite on which you want to create the content type, and click Next.
Figure 2. The Publishing Wizard screen in InfoPath where you can enter an URL to a SharePoint site or subsite.
Note: It is important to understand how the scope of a content type affects its availability before you enter an URL in the Publishing Wizard, because if you create a content type on for example a SharePoint site and want to use it in a Form Library on a different site that's not a child site, on a parent site, or on a site in a different site collection, the content type will not be available.
On the Publishing Wizard, select Site Content Type (advanced), and click Next.
Figure 3. The Publishing Wizard screen in InfoPath where you can select to publish the form template as a content type.
- On the Publishing Wizard, select Create a new content type, and click Next.
- On the Publishing Wizard, type in a Name for the content type, and click Next.
- On the Publishing Wizard, click Browse, browse to and select the document library you created in Create a document library in SharePoint, type in a name for the form template, and click Save. When you get back on the Publishing Wizard, click Next.
- On the Publishing Wizard, click Next.
- On the Publishing Wizard, click Publish.
- On the Publishing Wizard, click Close.
3. Create a SharePoint form library and add the content type to it
- In SharePoint, create a new Form Library.
- On the Settings menu of the form library, click Form Library Settings.
- On the Form Library Settings page, under General Settings, click Advanced settings.
- On the Form Library Advanced Settings page, select Yes for Allow management of content types?, and click OK.
- On the Form Library Settings page, under Content Types, click Add from existing site content types.
- On the Add Content Types page, select the content type for the InfoPath form template you published earlier, click Add, and then click OK.
The InfoPath form template should now be available as a menu item under the New button of the SharePoint form library you created.
Copyright: This article may not be used on web sites (whether personal or otherwise), copied, disseminated, altered, printed, published, broadcasted, or reproduced in any way without an expressed written consent of S.Y.M. Wong-A-Ton. The techniques demonstrated in this article may be used within any Microsoft InfoPath project. This article is provided without any warranties. Copyright for this article is non-transferrable and remains with the author, S.Y.M. Wong-A-Ton.
Related InfoPath Articles:
- Force InfoPath browser-enabled form to open in the browser
- How to publish an InfoPath 2007 browser form to SharePoint
- InfoPath Warning: The form template could not be browser-enabled, but...
- 3 Ways to deploy InfoPath form templates to SharePoint
- Publish administrator approved form templates to SharePoint 2010