Solved

Create New Item to different Content Types

Posted on 2011-03-25
6
653 Views
Last Modified: 2012-06-27
In Sharepoint 2010 I have a list that consists of different Content Types. When setting up the Content Types on a list one of then is set as default. This "Default" CT is the one that the "Create New Item" is linked to.
To create a list item of another type you must click the pull down on the "New Item" button at the top.

Is it possible to create a link (url) that opens the pop-up form for a specific Content Type? I would like the "Create New Item" to behave differently depending on the view I have open...
0
Comment
Question by:Wassini
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 14

Accepted Solution

by:
KoenVosters earned 500 total points
ID: 35215262
Out of the box that is not possible based on the view. The only way I see would be to have some javascript / jquery logic that modifies the behavior of the ribbon depending on the view, but in my opinion that would be hard to implement. Can you tell me what business reasons there are behind this?
0
 

Author Comment

by:Wassini
ID: 35215298
Ok! Let me refrase it:

I need the format of the URL to open the correct form so I can make my own links. Something like

_Layouts/OpenForm.aspx?ID=MyList&CT=xxxxx

or whatever. Then I can just create my own page with a link on...

I can't see the URL from the pull-down menu of the button.
0
 
LVL 8

Expert Comment

by:nsyyoung
ID: 35215369
Do mean: open a blank form and copy the URL that is then in the address bar?  You can copy that link and create a shortcut or email it.  That works in 2007, not sure about 2010.
0
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
LVL 6

Expert Comment

by:Rafael I
ID: 35316680
What would you like the popup form to point to, or what new document will you want to be created if they pick different content types?
0
 

Author Comment

by:Wassini
ID: 35321373
nsyyoung: That opens the form in a new page, and I would like to have the form to be shown as a pop-up in 2010-style.



rawsteak: If I have a list that contains 3 different content types there is a form for each content type. I would like to have a link or a button to each content type. Instead of a "Create New Item", I would like to have three links: "Create New CT1", "Create New CT2", "Create New CT3". To create these three links, I need the URL formatting.
0
 

Author Comment

by:Wassini
ID: 35819486
The reason for wanting this is that I have a list that contains several different hardware devices (servers, laptops, desktops, printers, switches etc) and I use the Content Types to inherit different attributes for each hardware type

Hardware > Network  Device

Network Device > Computer

Computer > Servers
Computer > Desktops
Computer > Laptops

Network Device > Switch

etc...

Then I have a link to each top-level device that points to a filtered list - BUT in every one of these lists, the "Create New Item" is opening the "Default" form. This means that the correct attributes are NOT visible.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question