<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Rob Haller</title><subtitle type="html" /><id>https://www.infopathdev.com:443/blogs/rob/atom.aspx</id><link rel="alternate" type="text/html" href="https://www.infopathdev.com:443/blogs/rob/default.aspx" /><link rel="self" type="application/atom+xml" href="https://www.infopathdev.com:443/blogs/rob/atom.aspx" /><generator uri="http://communityserver.org" version="3.0.31118.962">Community Server</generator><updated>2008-09-22T20:49:00Z</updated><entry><title>Creating a Web Link or href for SharePoint New Button on InfoPath Forms Library</title><link rel="alternate" type="text/html" href="https://www.infopathdev.com:443/blogs/rob/archive/2008/09/22/creating-a-web-link-for-sharepoint-new-on-infopath-forms-library.aspx" /><id>https://www.infopathdev.com:443/blogs/rob/archive/2008/09/22/creating-a-web-link-for-sharepoint-new-on-infopath-forms-library.aspx</id><published>2008-09-23T00:49:00Z</published><updated>2008-09-23T00:49:00Z</updated><content type="html">&lt;p&gt;Using the New button on a SharePoint InfoPath Document List is not intuitive for new SharePoint users.&amp;nbsp; It would be nice if users could simply click a web link to launch a new InfoPath Form.&amp;nbsp; Here is how to do this in a single&amp;nbsp;line URL&amp;nbsp;...&lt;/p&gt;
&lt;p&gt;Edit a Web Page and add a web link using this format:&lt;/p&gt;
&lt;p&gt;&amp;lt;a href=&amp;quot;BLOCKED SCRIPTcreateNewDocumentWithProgID(escapeProperlyCore(&amp;#39;http://{SERVER}/{SITE}/{LIBRARY}/Forms/template.xsn&amp;#39;, true), &amp;#39;http://{SERVER}/{SITE}/{LIBRARY}/&amp;#39;, &amp;#39;SharePoint.OpenXMLDocuments&amp;#39;, true)&amp;quot;&amp;gt;Create a New Document&amp;lt;/a&amp;gt;&lt;/p&gt;
&lt;p&gt;Note: if you see the words BLOCKED SCRIPT in the line above, replace it with &amp;#39;j a v a s c r i p t :&amp;#39;&amp;nbsp;without the single quotes as shown here and without any spaces.&amp;nbsp; This blog automatically replaces the key word &amp;#39;java script&amp;#39; (when run together) and the colon with the phrase BLOCKED SCRIPT.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;You must replace&amp;nbsp;{SERVER}, {SITE}, and {LIBRARY} with your path to the forms library.&amp;nbsp; Also, you can change the phrase &amp;quot;Create a New Document&amp;quot; to whatever you want.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I have not done this yet, but I also believe that if you have more than one form published to a library, you will need to determine what the form&amp;#39;s name is.&amp;nbsp; The default name of &amp;quot;template.xsn&amp;quot; is used in the example above.&amp;nbsp; So, if you have more than one published form, you may need to change &amp;quot;template.xsn&amp;quot; to whatever it is called.&amp;nbsp; You can view and manage all InfoPath templates by going to the Forms Library where the form is published, then select: Settings--&amp;gt;Form Library Settings--&amp;gt;Advanced Settings.&lt;/p&gt;
&lt;p&gt;There are posts similar to this on the web; however, none of them are as &lt;span style="FONT-SIZE:11pt;LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;concise as this &lt;/span&gt;single line launcher.&amp;nbsp; Credit for this goes to my colleague, Phil Chuang.&amp;nbsp; Thanks Phil.&lt;/p&gt;&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=32443" width="1" height="1"&gt;</content><author><name>NG_Nibbler</name><uri>https://www.infopathdev.com:443/members/NG_5F00_Nibbler.aspx</uri></author><category term="SharePoint InfoPath New Button Web Link" scheme="https://www.infopathdev.com:443/blogs/rob/archive/tags/SharePoint+InfoPath+New+Button+Web+Link/default.aspx" /></entry></feed>