Showing posts with label content type ID. Show all posts
Showing posts with label content type ID. Show all posts

Thursday, March 21, 2013

Linking Directly To The New Form For Multiple Content Types


Hello!

This is my first official blog and I wanted to give a quick tutorial on how to link directly to the New Item Form as well as how to link to the New Item Form for multiple Content Types within your SharePoint 2010 List or Library.

Linking Directly to a New Item Form
(this will link directly to the default content type new form)

Http://intranet/lists/mylist/newform.aspx

Linking directly to a different content type new form:

Http://intranet/lists/mylist/newform.aspx?ContentTypeID=

To find your Content Type ID go to the

Site Actions→ Site Settings→ Galleries → Site Content Types → Copy the shortcut for the content type you need to link to → take everything after ctype= (until the apostrophe) → use that content type id in the above URL

javascript:GoToPage('\u002fus\u002fExample/_layouts/ManageContentType.aspx?ctype=0x00A7470EADF4194E2E9ED1031B61DA088403');

Another way I found to directly link to the form is to open the desired form then copy the shortcut then use that, except after you submit the item it does not know where to post back to so you are left with a blank webpage and every time you refresh the page it creates a new item. I would suggest using the above method instead of using the copied shortcut, but if you do you will need to send the user back somewhere.

You can do this to fix the issue with that method or to send the user to the desired location

Http://intranet/lists/mylist/newform.aspx?ContentTypeId=0x00A7470EADF4194E2E9ED1031B61DA088403&Source=DesiredURLHere