Monday, February 4, 2008

URL to open a InfoPath form using Forms Server

While working on a InfoPath/SharePoint/Workflow project, we needed to be able to provide a link that would open the IP form in the browser rather than the client. Here is how to form the URL to do just that.

http://ServerName/PathToSite/_layouts/FormServer.aspx?XmlLocation=/PathToSite/PathToLibrary/YourFormName.xml&DefaultItemOpen=1

The key here is your correct pathing and to include the second query string parameter of DefaultItemOpen=1.

For more information, see this link.
http://msdn2.microsoft.com/en-us/library/ms772417.aspx

No comments: