- SharePoint Enterprise Edition 2013
- Microsoft InfoPath Designer 2013
- An account to access the SharePoint 2013 Site as Site Collection Administrator
- Visual Studio 2012
Step 1 :- Open InfoPath Form:
Open the 2007 InfoPath template (XSN file) with InfoPath Designer 2013
Step 2 :- Go to Form Options:
File->Options->Form Options

Step 3:-Set Full trust for the form Security and Trust

Step 4:-Set Code path and Target Version for InfoPath.
In Our case we had a code behind for the InfoPath form, so set the project file under Programming.
Target of the Form should be InfoPath in the Target dropdown.

Step 5 :- Change Compatibility
Change the Form type from Web Browser Form (InfoPath 2007) to Web Browser Form and set the Url of the site.

Step 6:- File -> Publish-> SharePoint server

Step 7:- Give the URL of the site where this form needs to be published.

Step 8 :- Click on next and select Administrator-approved form template

Step 9 :- Click Next, Configure the path where the form needs to be published

Step 10:- Click Next

Note: User can modify the InfoPath fields here, if required.
Step 11:- Click Publish

Step 12:- After its successfully published, click Close

Command to deploy the form to central admin (as earlier it was deployed to central admin)
Install-SPInfoPathFormTemplate -Path "Path of the xsn file"
Enable-SPInfoPathFormTemplate -Identity "Agreement Form.xsn" -Site "SiteCollectionUrl"
If you want to re-deploy in the same farm, follow these commands:
- Disable-SPInfoPathFormTemplate -Identity "Formname.xsn" -Site "SiteCollectionUrl"
- Uninstall-SPInfoPathFormTemplate -Identity "Formname.xsn"
- Install-SPInfoPathFormTemplate -Path "Path of the xsn file"
- Enable-SPInfoPathFormTemplate -Identity "Agreement Form.xsn" -Site "SiteCollectionUrl"
Form will be deployed to Central Admin.
No comments:
Post a Comment