I have a sharepoint docuemnt library and i'd like to create a link on my homepage that will launch a new item form associated to my list. Does anyone know what the url would be if my document library is named "test?"
4 Answers
If it is a document library you to build the following URL
{url3}/_layouts/Upload.aspx?List={list-guid}
- Where {url3} is the URL to the site containing the document library e.g. http://servername
- And {list-guid} is the GUID for the document library e.g.{C61C7F01-B778-402E-BCDF-5E2960B45372}. The GUID is in the URL when you are in the Document Library settings page.
If it is a list you need to build this URL
{url1}/NewForm.aspx?Source={url2}
- Where {url1} is the URL to the list for e.g. http://servername/Test
- And {url2} is the URL to redirect back to when the new record has been added for e.g. you homepage URL - This is an optional parameter.
-
thanks. b/c i'm using an infopath form the url was actually "servername/listname/Forms/template.xsn" but your post got me on the right track. thanks.– user2825Commented Jun 28, 2011 at 11:52
-
2This Source={url2} thing does not work if the url1 and url2 are to the items on different site collections. Do you know how to get around this issue? Vote up nonetheless, great answer, thanks.– EedohCommented Jan 17, 2013 at 16:23
-
Yes.. I also experienced this issue. If url1 and url2 are on different site collections then redirect doesn't works.– Zakir HCCommented Mar 2, 2014 at 12:40
Just add NewForm.aspx (default) to the List URL, eventually replacing AllItems.aspx or whatever is used for the current view.
example:
-
Excellent! This solution seems to be universal enough to work still with ms265 / SharePoint online (as of Dec 2023).– DirkCommented Dec 9, 2023 at 19:16
You can right click on the "Add a new item" at the bottom of your list or document library and then paste that as your link.
-
"You can right click on the "Add a new item" at the bottom of your list or document library and then paste that as your link" Tried that, nothing happens when I right-click– user17540Commented Jun 10, 2013 at 18:31
-
Specifically, you need to right click and then choose "Copy Shortcut."– DeNaeLCommented Jun 27, 2013 at 22:39
-
This does not work for SharePoint online (ms365) in "new experience" settings.– DirkCommented Dec 9, 2023 at 19:13
In SharePoint 2013 you should use
<site collection url>/lists/<list name>/item/newifs.aspx
Example:
mySiteUrl/Lists/test/item/newifs.aspx
You can also append the source query string parameter to have the submit action take you to another page.
Note the NewForm.aspx will still work in 2013 but it will redirect you to this page.