Reusing InfoPath forms as Content Types - Part 1

By:   |   Comments   |   Related: > SharePoint


Problem

In order to create different InfoPath forms, SharePoint generally needs different form libraries. This is true even if the form shares many common fields. The problem is that creating multiple libraries and developing multiple forms can be costly.

Solution

InfoPath 2007 allows you to publish forms as content types. Content types are a collection of different sets of data. The benefit of using content types is reusability. Rather than building everything from scratch, content types provide a generic set of data objects to start with.

This article is the first of a 2 part series. The first will discuss how to publish InfoPath forms as a content type. The second article will show how to reuse content types in another library.

How to publish InfoPath form as content type.

Here is a sample employee information form which contains basic information like Name, Id, Address and Years of Experience.

employee information

Click on File>Publish

microsoft office

A publishing wizard will appear. Select "To a SharePoint server with or without InfoPath Forms Services". Click on Next

publishing wizard

Next, you need to provide the path of the InfoPath forms library. Copy the path and paste it in the box. Click on Next. (note: I have hidden part of the URL for privacy purposes)

publishing wizard

Now you will be given an option to publish your form to a "Document Library" or a "Site Content Type". For our purposes, select "Site Content Type". Click on Next

site content type

An option will appear to "Create a new content type" or "Update an existing site content type". Select "Create a new content type". Click on Next

publishing wizard

Provide a meaningful content type name and description (optional).Click Next

publishing wizard

ThThe form content type always points to a form template. So we need to save a template to a location. Provide a path where you want to store the template.  (note: I have hidden part of the URL for privacy purposes)

publishing wizard

Add the needed properties you want to publish and click on Next.

emp experience

Click on "Publish" and your form will get published as a content type.

publishing wizard
Next Steps
  • Look for Part 2 of this article -- How to use published infopath form content types in other libraries


sql server categories

sql server webinars

subscribe to mssqltips

sql server tutorials

sql server white papers

next tip



About the author
MSSQLTips author Rahul Mehta Rahul Mehta is a Project Architect/Lead working at Tata Consultancy Services focusing on ECM.

This author pledges the content of this article is based on professional experience and not AI generated.

View all my tips



Comments For This Article

















get free sql tips
agree to terms