Pages

6/25/2016

How to Configure and Publish InfoPath Form to SharePoint 2013

We can use InfoPath to easily customize a list with a design environment for a designing and publishing form via commonly used Windows controls such as check boxes, text boxes, command buttons, and option buttons. In this post, I will show you how to configure and publish a InfoPath Form to SharePoint 2013.
Notes: To configure and publish InfoPath to SharePoint 2013, the following items are required:
1.  SharePoint Enterprise 2013
2.  Microsoft InfoPath Designer 2013
3.  An account to access the SharePoint 2013 Site
4.  Having the SharePoint Server Enterprise Site Collection feature activated
To activate the SharePoint Server Enterprise Site Collection feature, go to Site Setting --> under Site Collection Administration, select Site Collection Feature --> Active SharePoint Server Enterprise Site Collection features
sp_01
Make sure States Service is started.  Go to Central Administration --> click Application Management --> under Service Application section --> click Manage Service Application
sp_02
If you don’t see State Service in the list, go to Central Admin --> click Configuration Wizard --> click Launch the Farm Configuration Wizard--> click Start the Wizard --> Select State Service and click OK.

Create the InfoPath form

Step 1: To create the InfoPath Form, open InfoPath Designer 2013 and under Available Form Templates, select Blank Form and click the Design Form button.
sp_03
The design form will appear as shown:
sp_04
Step2: Design the Form.
Go to the Insert tab and in the tables section, double click the Two-Column 2 Heading table to insert the table into the Design Form.
sp_05
Click to add heading text and type "Contact Info".  Right click on the form, select Insert, and then Rows Below (repeat this 2 times to add 2 rows). The Form should look like this:
sp_06
In the Fields window on the the right hand, right click on the myFields folder, and click Add.
sp_07
This "Add Field or Group" form should show up:
SP_08
Repeat the steps above to add the remaining fields, using the "text" data type:
sp_09
Drag each field and add it to the form:
sp_10
Now, we have Simple InfoPath form with the info above.

III. Publish InfoPath to SharePoint 2013

To publish the InfoPath Form, click File, click Publish, and then click SharePoint Server to bring up the Publishing Wizard form.  On the first page of the Publish Wizard, type the URL of the SharePoint site where you would like the new form to be located and click Next.
sp_11
On this page of the Publishing Wizard, select the option corresponding to where you want to publish the InfoPath to:
sp_12
Publish InfoPath Form Template to Form Library
Select the Form Library option if you want publish the new form to a SharePoint Form library only.  Click Next to go to the next Publishing Wizard page.
sp_13
On this page, you have the option to publish to an existing form library or create a new form library.  If you select create a new form library and click Next, this page will appear:
sp_14
On this page, type the Name of the new library and click Next. I chose "InfoPath Library".  Here, you have the option to promote form fields into the columns of the library.  Click Add to add those columns and click Next.  These fields will be available as columns in the SharePoint Site.
sp_15
Then, click Publish to publish the InfoPath Form.  Select Open this form library … and click Close.
sp_16
The InfoPath Library on SharePoint is opened.
sp_17
Click New Document and the InfoPath Form will be open in edit mode.
sp_18
Fill out the form and click Save.  Type the name of the InfoPath Form and click Save.
sp_19
The InfoPath Form is in the SharePoint site as shown below:
sp_20Publish InfoPath Form Template to Site Content Type
Select the Site Content Type (advanced) option if you want to publish the InfoPath form template that binds to a Site Content Type.  This option will allow the form template to be used in multiple libraries and sites.
sp_21
sp_22
Give a Content Type name and click Next.
sp_23
Specify a location and file name for the form template.
sp_24
sp_25
sp_26

sp_27
To use InfoPath as a Content Type, go to the Library in which you want to create the form, click the Library tab --> click Library Settings --> click Advance Settings --> under Allow management of content types, select Yes.
Under the Content Type section, click Add from existing site content types --> Select Microsoft InfoPath from the "Select site content types from" drop down list --> select Info Patch Content Type from Available Site Content Types box --> click Add, and click OK.
sp_28
Go back to the Library and click the Files tab, click the down arrow at New Document, and click InfoPathCT.
sp_29
Publish InfoPath as Approved Form Template
Select the Administrator-approved form template and click Next. This option will make the form template available on all site collections.
sp_30
Specify a location and file name for the form template and click Next.
sp_31
sp_32
sp_33
sp_34
To re-use the InfoPath template on other Site Collections, follow these steps below:
In Central Administration, click General Application Settings --> under InfoPath Forms Services, click Manage form templates.
sp_35Click Update form template and select file InfoPathSC which we saved before and click Ok
sp_36
Make sure the form template is uploaded success and click OK
sp_37
Now the Form Template is uploaded to the Manage Form Template page.
sp_38
Click on the down arrow besides the Form template to activate the InfoPath Form Template at the site collection.
sp_39
Go to the other site collection to activate the feature (Click Site Settings --> under Site Collection Administrator section, select Site Collection Features --> Activate InfoPathSC).
sp_40
After that, go to the list in which you want to re-use InfoPath Form and add Content Type.
sp_41Now, you can use the InfoPathSC Form in that site collection.

No comments:

Post a Comment