How to: Deploy Form Templates That Contain Form Code
The process of deploying InfoPath form templates that contain form code to a server running InfoPath Forms Services can be divided into three distinct steps:
Getting the form template ready. This step creates a new .xsn file which contains information about the server it will be deployed to.
Uploading the form template to the server. This step requires a farm administrator to add the form template to the server and includes the optional step of verifying that the form template can be uploaded.
Activating it to a site collection. This makes the form template available on a site collection so that it can be filled out in the browser or in InfoPath, depending on whether users have Microsoft Office InfoPath 2007 installed.
Get a Form Template Ready to be Deployed by a Server Administrator
Open the Publishing Wizard by clicking the File menu and selecting Publish.
The first option in this dialog is To a SharePoint server with or without InfoPath Forms Services. Leave this selected and click Next.
On the second screen of the Publishing Wizard, type the URL of a SharePoint server that you have at least Contribute rights to, meaning that you can add and delete content on the site, then click Next.
On the third screen of the Publishing Wizard, keep the default settings of Enable this form to be filled out using a browser and Administrator-approved form template (advanced), and click Next.
On the fourth screen of the Publishing Wizard, type a location and file name for the form template (.xsn) file. This can be on your local hard drive, a network file share, or a Web server. Click Next.
On the fifth screen of the Publishing Wizard, click the Add button to select fields from the form template that will be shown as columns in the document library and in Outlook. This is optional. After you are done, click Next.
On the last screen of the Publishing Wizard, click Publish. This saves your form template (.xsn) file to the location you specified. It is now ready to be uploaded to the server.
Upload a Form Template to a Server Running InfoPath Forms Services
- Open the SharePoint 3.0 Central Administration site.
Note
You must be a member of the Farm Administrators group in order to complete these steps.
Click the Application Management link.
Under InfoPath Forms Services, click the Manage form templates link.
Click the Upload form template link near the top of the page.
Click the Browse button to open a dialog box, and enter the path to the published form template.
Click the Verify button to verify that the form template does not contain any errors. This step is optional.
Click the Upload button to upload the form template to the site. After this is done, click the OK button.
Activate a Form Template to a Site Collection
On the Manage Form Templates page, locate the form template you uploaded.
Click the drop-down and select Activate to a Site Collection.
In the Activation Location section, click the drop-down and select Change Site Collection.
On the Select Site Collection dialog box, click the Web Application drop-down and select Change Web Application.
Click SharePoint - 80. This should be the name of your default SharePoint server. If not, select your default SharePoint server.
Click the site collection name that you want to activate the form to, and then click OK.
On the Activate Form Template page, click OK.
Note
Alternatively, activating a published form template can be done from the site collection administration page. Select Site Collection Features, locate the form template, and click the Activate button.