Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

When you are finished designing a form template, you must publish it so that users can fill out forms based on the form template. Users must have access to the location where the form is published. This topic described the different options to publish an InfoPath 2010 form.

In this article

Publish versus save

Publishing a form template is not the same as saving a form template. When a form template is saved, you are saving it to preserve your work, just as you do when you save a file on your computer. The publishing process modifies the form template for distribution by adding the publish location and processing instructions sections so that users can open forms that are based on this form template. The processing instructions allow forms that are based on this form template to be automatically updated if you make changes to the form template after publishing it.

Top of Page

Publish options

There are a number of different ways that you can publish your InfoPath forms. To publish a form, click the File tab, and then click Publish to be presented with the following options:

  • Quick Publish    Publish form to current location

If you are updating a form that has already been published, or are publishing a SharePoint list or workflow form for the first time, you can use quick publish to publish the form without having to indicate how and where it will be published. When you click Quick Publish, InfoPath 2010 automatically re-publishes or publishes the form to its previous or indicated location.

Note:  If a publish location has not been specified, Quick Publish is disabled.

  • SharePoint Server    Publish form to a SharePoint Library

If you want to publish an InfoPath form to SharePoint so that users can fill it out in a Web browser or in InfoPath filler then you can publish it to a SharePoint library. Users will then be able to access the form online, fill it out, and save the results as an InfoPath document in the library.

  • E-mail    Publish form to a list of e-mail recipients

You can create a new e-mail message that contains an InfoPath form. This option is useful when the recipients do not have access to a SharePoint site.

Note:  InfoPath Filler is required for forms that have been published in e-mail messages.

  • Network Location    Publish form to a network location or file share

This publishes the form to a network location or file share which allows the users to be able to navigate to the share (such as //MyShare/Path/FormLocation) and fill out the form in InfoPath Filler.

Note:  InfoPath Filler is required for forms that have been published to a network location.

SharePoint library or list?

In previous versions of InfoPath, you could publish a form to a SharePoint library, and, when users filled out the form, it would save their responses as documents within that library. While you can still do this, you can now use InfoPath 2010 to customize the form used to create, read and edit items in a SharePoint list so that responses are saved as items in the list. To do this, click Customize Form in SharePoint, or create a new SharePoint list from within InfoPath.

There are some distinct advantages to using a SharePoint list, instead of a document library, as follows:

  • You can manage the responses in the same way that you do with any items in a SharePoint list.

  • You do not have to specify how to connect to the SharePoint server when publishing the form because this is automatic.

  • When you are done customizing the list form, you only need to click Quick Publish to publish the form.

Top of Page

Publish to a SharePoint Library

To publish an InfoPath form to a SharePoint library, perform the following steps:

  1. Click File.

  2. Click Publish.

  3. Click SharePoint Server.

  1. Enter the Web address of the SharePoint site in the text box.

  1. Click Next

  2. Select how to publish the form. For most scenarios, select Form Library. For more information regarding the Site Content Type or Administrator-approved form template options, see the Advanced concepts section.

  1. Click Next

  2. Click a pre-existing form library for the InfoPath form if one has already been created or click Create a new form library to create a new one.

  1. Click Next

  2. If you are creating a new SharePoint library, enter the name of the library in the Name text box and a description for the library in the Description text box.

  1. Click Next

  2. To display data from your form as a column in the form library, use property promotion. To do this, click Add, select a desired field, and then type a name for the column in the Column name box.

  3. If you selected a repeating field, click a value in the Function list to define how to display the field in the form library, and then click OK.

Note:  You can choose whether to display the first value in the field, the last value, or a count of all the occurrences of the field, or whether to merge all the values together.

  1. Repeat steps 12 and 13 as necessary for each field in the form that you want to add as a SharePoint column, and then click Next.

  2. Click Next.

  3. Click Publish.

Top of Page

Publish to e-mail

To publish an InfoPath form to a list of e-mail recipients, perform the following steps:

  1. Click File.

  2. Click Publish.

  3. Click E-mail.

  4. If you have not already saved the form, click OK to save the form.

  5. Enter a name for the form in the Form template name text box, and then click Next.

  1. To display data from your form as a column in an InfoPath form item folder, use property promotion. To do this, click Add, and then select a desired field then type a name for the column in the Column name box.

  2. If you selected a repeating field, click a value in the Function list to define how to display the field in the form library, and then click OK.

Note:  You can choose whether to display the first value in the field, the last value, or a count of all the occurrences of the field, or whether to merge all the values together.

  1. Repeat steps 6 and 7 as necessary for each field in the form that you want to add as a column in Outlook, and then click Next.

  1. Click Publish when you are finished to open the form as an e-mail message.

  1. Enter the recipients in the To, Cc, and Bcc boxes.

  1. Customize the contents of the Subject field.

  2. The Introduction text box provides a place for form instructions and an explanation to users on why they have received the form.

  3. Click Send.

Top of Page

Publish to a Network Location

To publish an InfoPath form to a UNC or non-SharePoint server on the network, perform the following steps:

  1. Click File

  2. Click Publish.

  3. Click Network Location.

  4. Enter the desired path and filename of the form in the first text box.

    Note:  This might be a location on your hard disk, or a file share, such as \\private\example\exampleform.xsn. This might also be a location on your computer, which would look like this: C:\examplefolder\exampleform.xsn.

  1. Enter the name of the template in the Form template name text, and then click Next.

Note:  The form name, which is used to identify the form if you update it or republish it, is also visible to users when they fill out the form.

  1. Enter a user-accessible path and file name in the text box.

Note:  In most cases, the publish location and the alternate access path will be the same. In other cases, such as if the file was saved to the C drive, it would not be. For example, if you saved the form to C:\examplefolder\exampleform.xsn, then the user accessible path may look like \\mycomputer\examplepath\exampleform.xsn. If the previous path was a user accessible path, such as \\private\example\form\exampleform.xsn, and both you and users can access it, then no action needs to be taken for this step.

  1. Click Next again.

  2. Click Publish.

Top of Page

Advanced concepts

Site content type

A content type defines a form template, a set of columns, and document management settings on the server, such as workflow or policy settings.

By creating content types, you can reuse form templates and settings across a site by publishing a form template as a site content type. When you update the content type, your change is automatically applied wherever that content type is used.

You can assign a single content type to multiple libraries across a site or assign multiple content types to a single library. For example, you can add a content type for status report forms to all of the libraries that are used by the sales department in your company, so that each sales team is collecting and reporting the same type of information to management. Alternatively, suppose that your department uses different form templates for travel request, trip report, and expense report forms. You can publish the three form templates as site content types and add them to a single library used for storing team travel-related information. When people create a new form from the library, they can then select which of these form templates they want to use.

Sandboxed Code in InfoPath forms

With InfoPath 2010, you can publish form library forms, with code, directly from the InfoPath Designer as long as the form is not a fully trusted form and you are a site collection administrator by using the Sandboxed Code service in SharePoint. Publishing forms with sandboxed code uses the same process as publishing a form to a form library or as a site content type.

Administrator-approved form templates (full trust forms)

Administrator-approved form templates are available to any site collection on the SharePoint site and can contain code that requires full trust. They are individually verified, uploaded, and activated by a SharePoint site administrator. Administrator-approved form templates are maintained in a special document library that can be accessed only by administrators. For information regarding administrator-approved form templates, refer to the following links:

Top of Page

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×