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:
- In InfoPath Designer, click the File tab.
- In the actions column, click Publish, and then click SharePoint Server
- In the Publishing Wizard, type the URL of the target SharePoint website, and then click Next.
- Verify that the Enable this form to be filled out by using a browser check box is selected, and that Form Library is selected.
- Click Next twice.
- Click Publish.InfoPath Designer first creates a new form library on the website and then publishes the resource planning form in the library.
- In the Publishing Wizard, click Open this form in the browser.The form opens in the default browser.
- Copy the entire contents of the browser’s address bar, and Voilà. The address bar contents should resemble the following.
- Choice 2:
- Navigate to the SharePoint Library in your web browser
- At the bottom of the SharePoint Library, click the Add document button.
- The form will open in your browser.
- Copy the entire contents of the browser’s address bar, and paste it into Notepad. The address bar contents should resemble the following:
- We need to chop up the URL and Add a few things:
- 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=…
- 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 🙂
- We are also going to remove “&DefaultItemOpen=1“
- 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. 😀