SharePoint 2010- Link directly to InfoPath form template

OK so you have an InfoPath form and you need to put a link directly to the form on the main page of the site. We don’t want to link to the library itself and then get people to click the “Add Document” link on the bottom of the list because that is way too many steps and life will be better with less steps… 🙂

We can do this Two Ways:

  • Choice 1:
    1. In InfoPath Designer, click the File tab.
    2. In the actions column, click Publish, and then click SharePoint Server
    3. In the Publishing Wizard, type the URL of the target SharePoint website, and then click Next.
    4. Verify that the Enable this form to be filled out by using a browser check box is selected, and that Form Library is selected.
    5. Click Next twice.
    6. Click Publish.InfoPath Designer first creates a new form library on the website and then publishes the resource planning form in the library.
    7. In the Publishing Wizard, click Open this form in the browser.The form opens in the default browser.
    8. Copy the entire contents of the browser’s address bar, and Voilà. The address bar contents should resemble the following.
      http://teamsite/_layouts/FormServer.aspx?XsnLocation=http://teamsite/ContosoResourcePlanning/forms/template.xsn&OpenIn=browser&SaveLocation= http://teamsite/ContosoResourcePlanning&Source=http://teamsite/ContosoResourcePlanning
  • Choice 2:
    1. Navigate to the SharePoint Library in your web browser
    2. At the bottom of the SharePoint Library, click the Add document button.
    3. The form will open in your browser.
    4. Copy the entire contents of the browser’s address bar, and paste it into Notepad. The address bar contents should resemble the following:
    5. We need to chop up the URL and Add a few things:
      1. We want the form to always open in the browser so we need to add “&OpenIn=browser“.  Just paste it in between …/template.xsn and &SaveLocation=…
      2. SharePoint loves being a snot and opening forms on the client machine so just to be safe Please remove “&ClientInstalled=true“. This don’t always happen but for good measure we are going to remove it because it don’t actually need to be there 🙂
      3. We are also going to remove “&DefaultItemOpen=1
      4. Your URL should now resemble the following:

That’s it… No honestly that’s it… Paste your URL where you need to place it and you are set. 😀