Sunday, October 5, 2008

Create a new form in Infopath without opening up a Form Library

I found this post and I thought it was really neat. Basically you can create a link anywhere in Sharepoint that creates a new form in Infopath without prompting the user for the "Open, Save As, Cancel" prompt. All you have to do is put this on your page. Change YOURSEVER with your server name, SITE to your site(s) name and FORM LIBRARY with your form libary name:

<a href="javascript:createNewDocumentWithProgID(
escapeProperlyCore('http://YOURSERVER/SITE/FORM LIBRARY/Forms/template.xsn', true),
'http://YOURSERVER/SITE/FORM LIBRARY/',
'SharePoint.OpenXMLDocuments',
true)">Create a New Document</a>

No comments:

Post a Comment