2

I have a SharePoint 2010 Site collection and I need to know how I would write the URLs to a newform.aspx associated with a SharePoint list when I have two separate content types.

Generally (for a single content type) I would do it like this:

Sitecollection.com/lists/myListName/NewForm.aspx

..but this only displays the default content type.

I'm am sure there is a simple add-on to the URL to define the other content type but I simply don't know it and I cant find the answer in my resources so any assistance would be appreciated.

5

You can pass content type id as query string parameter ContentTypeId

Sitecollection.com/lists/myListName/NewForm.aspx?ContentTypeId=0x0100123456789

You can easily find your content type id if you go to List settings, click on desired content type and find the id in URL (here it is called ctype parameter)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.