Deployment Steps For InfoPath Form During Migration


  • 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

InfoPath1.png 

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

 InfoPath2.png
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.

InfoPath3.png 

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.

InfoPath4.png 

Step 6:- File -> Publish-> SharePoint server
InfoPath5.png 


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

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

InfoPath7.png 


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

InfoPath8.png 

Step 10:- Click Next

InfoPath9.png 

Note: User can modify the InfoPath fields here, if required.

Step 11:- Click Publish

InfoPath10.png 

Step 12:- After its successfully published, click Close

InfoPath11.png 


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:

  1. Disable-SPInfoPathFormTemplate -Identity "Formname.xsn" -Site "SiteCollectionUrl"
  2. Uninstall-SPInfoPathFormTemplate -Identity "Formname.xsn"
  3. Install-SPInfoPathFormTemplate -Path "Path of the xsn file"
  4. Enable-SPInfoPathFormTemplate -Identity "Agreement Form.xsn"  -Site "SiteCollectionUrl"



Form will be deployed to Central Admin.

No comments:

Post a Comment