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?"
Asked
Active
Viewed 8.1k times
4 Answers
29
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.
dlongman
- 456
- 4
- 6
-
thanks. b/c i'm using an infopath form the url was actually "http://servername/listname/Forms/template.xsn" but your post got me on the right track. thanks. – user2825 Jun 28 '11 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. – Eedoh Jan 17 '13 at 16:23
-
Yes.. I also experienced this issue. If url1 and url2 are on different site collections then redirect doesn't works. – Zakir HC Mar 02 '14 at 12:40
12
Just add NewForm.aspx (default) to the List URL, eventually replacing AllItems.aspx or whatever is used for the current view.
example:
Dirk
- 187
- 11
Ruben Herman
- 2,744
- 3
- 35
- 49
-
Excellent! This solution seems to be universal enough to work still with ms265 / SharePoint online (as of Dec 2023). – Dirk Dec 09 '23 at 19:16
4
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.
jassyjames12
- 53
- 5
-
"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 – Jun 10 '13 at 18:31
-
-
This does not work for SharePoint online (ms365) in "new experience" settings. – Dirk Dec 09 '23 at 19:13
3
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.
Ryan Erickson
- 1,941
- 2
- 21
- 32