Take the 2-minute tour ×

I've found this page which explains how to add a ‘Create New Document’ link to a page :

<img alt="" src="/_layouts/images/rect.gif">&nbsp;
<a onclick="createNewDocumentWithProgID('http:\u002f\u002fvm-moss2007\u002fMod Props\u002fForms\u002fMod Props\u002fModPropTemplate.xlsx', 'http:\u002f\u002fvm-moss2007\u002fMod Props', 'SharePoint.OpenDocuments', false);return false;" href="#">Create new Mod Prop</a>

My question is if it's also possible to add a link to a web-page which goes directly to the 'Add Document Set' functionality.

share|improve this question
add comment

1 Answer

The code below will allow you to perform a redirect to a given page when the user clicks on New Item

$("a[id$='NewMenu']").click(function(e) { window.location = '/_layouts/smartaudit/UploadAudit.aspx'; return false; });
share|improve this answer
Would you care to put some more context around that? How would you integrate that into the html snipped in the question? Where does the Document Set come in? –  teylyn Jul 21 '13 at 23:57
add comment

Your Answer


