Thursday, May 13, 2010

Create an hyper link to Info path form

<SCRIPT>

var L_NewDocumentRuntimeError_Text = L_NewFormLibTb1_Text;

var L_NewDocumentError_Text = L_NewFormLibTb2_Text;

function WPQ3createNewDocument()

{

var strTemplate = "http://hysps01:2009/test/New%20Purchase%20Request%20Form/Forms/template.xsn";

var strSaveLocation = "http://hysps01:2009/test/New%20Purchase%20Request%20Form";

var strProgID = "SharePoint.OpenXMLDocuments";

createNewDocumentWithProgID(escapeProperlyCore(strTemplate, true),

makeAbsUrl(strSaveLocation), strProgID, true);

}

</SCRIPT>

<a href="javascript:WPQ3createNewDocument();">Click here to add a new contact</a>

0 comments: