Open an InfoPath form from a link in SharePoint 2010

Learn how you can add a navigation link to the Quick launch bar on a SharePoint 2010 site so that users can easily click the link to fill out a new InfoPath form.

ADVERTISEMENTS

Suppose you created an InfoPath 2010 web browser form and published it to a Form Library on SharePoint 2010.

Now you want to be able to add a navigation link to it in the Quick Launch on the SharePoint site, so that users can click the link and immediately have a new InfoPath form open within the browser without having to go to the SharePoint form library for the InfoPath form.

You can accomplish this functionality as follows:

  1. In InfoPath create a new Blank Form template and publish it to a SharePoint Server. You can publish the InfoPath form template to a SharePoint form library or as a site content type.
  2. In SharePoint 2010, go to the SharePoint form library where you published the InfoPath form template, and click Add document.
  3. When a new InfoPath form opens, copy the URL from the web browser’s address bar, and paste it in Notepad.
  4. Modify the URL by removing &Source= and everything that comes after it until before the ampersand of the next query string parameter. You should leave the SaveLocation and DefaultItemOpen query string parameters intact. For more information, see How to: Use Query Parameters to Invoke Browser-Enabled InfoPath Forms.
  5. Copy the modified URL to the clipboard.
  6. Go to the SharePoint site on which you want to add the navigation link, and click Site Actions > Site Settings.
  7. On the Site Settings page under Look and Feel, click Quick launch.
  8. On the Quick Launch page, click New Heading.
  9. On the New Heading page, type the URL for the SharePoint site (on which you are currently located) into the Type the Web address text box, type InfoPath Forms in the Type the description text box (this will become the title for the heading), and click OK.
  10. On the Quick Launch page, click New Navigation Link.
  11. On the New Navigation Link page, paste the URL you modified and copied earlier into the Type the Web address text box, type a name for the link in the Type the description text box, select InfoPath Forms from the Heading drop-down list box, and click OK.

The link should now appear on the Quick launch navigation bar of the SharePoint site, and when you click the link for the InfoPath form, a new InfoPath form should open. Once you have filled out and either saved or submitted the form, you should be taken back to the page on which you clicked the link.

 
 Subscribe via RSS or Email

Copyright: This article may not be used on web sites (whether personal or otherwise), copied, disseminated, altered, printed, published, broadcasted, or reproduced in any way without an expressed written consent of S.Y.M. Wong-A-Ton. The techniques demonstrated in this article may be used within any Microsoft InfoPath project. This article is provided without any warranties. Copyright for this article is non-transferrable and remains with the author, S.Y.M. Wong-A-Ton.

InfoPath 2013 Cookbook: 121 Codeless Recipes for Beginners
InfoPath 2013 Cookbook 2: 121 Codeless Recipes for SharePoint 2013
InfoPath 2010 Cookbook: 101 Codeless Recipes for Beginners
InfoPath 2010 Cookbook 2: 101 Codeless Recipes for SharePoint 2010
InfoPath 2010 Cookbook 3: 101 Code Recipes for C# Developers
InfoPath 2010 Cookbook 5: Integrating InfoPath with Excel and Excel Services


Related Posts

ADVERTISEMENTS

InfoPath 2013 Cookbook: 121 Codeless Recipes for Beginners

InfoPath 2013 Cookbook 2: 121 Codeless Recipes for SharePoint 2013

InfoPath 2010 Cookbook: 101 Codeless Recipes for Beginners

InfoPath 2010 Cookbook 2: 101 Codeless Recipes for SharePoint 2010

InfoPath 2010 Cookbook 3: 101 Code Recipes for C# Developers

InfoPath 2010 Cookbook 4: 101 Code Recipes for VB Developers

InfoPath 2010 Cookbook 5: Integrating InfoPath with Excel and Excel Services