0

I am working with a Form library, that also has a requirement for users to create Word and Excel files. The library has been configured to allow for multiple content types, however, upon clicking +New, the default content type automatically loads. Users can briefly see the list of available content types, but are unable to select one.

I have seen this question ask in the past, but no correct answer was ever given. I am hoping that someone has been able to figure this out.

Thank you.

  • Can you add an image? – Juan Pablo Pussacq Laborde Jun 26 '17 at 17:26
  • There really isn't an image I could add that would be helpful. I have a document library, with three different content types. When I click the New button, a blank Word doc opens. There is no way to select any other content type. – Stupid Clown Jul 5 '17 at 20:11
  • the combobox does not appear? – Juan Pablo Pussacq Laborde Jul 5 '17 at 20:15
  • The combobox appears for an instant (way to fast for anyone to select one of the other content types), before a Word doc loads. – Stupid Clown Jul 12 '17 at 14:16
  • But are you clicking only in the arrow? – Juan Pablo Pussacq Laborde Jul 12 '17 at 14:22
0

I found a workaround. I really don't care if it's not "elegant": I just need it to work -which it does!

How I did it:

  1. Ensure the custom content types are enabled in the list

  2. If you want to still include the Upload button, right click on it, chose Inspect element, copy the code for the button, then paste it into Notepad for later use

  3. Do the same for the +New button

  4. Click the FILES tab --> New Document dropdown, and open one of your custom content types custom content types

  5. Once the template loads, copy the URL

  6. Go back to Notepad, and in the button code, replace "Renderer.FunctionDispatcher.Execute(this,0,"itemClick",event,Renderer.FunctionDispatcher.GetObject(0))" -found in the onclick event- with the URL to the template that you just copied

  7. Repeat steps 4-6 for each additional custom content type

  8. Insert a CEWP, and hide the +New dropdown with CSS .ms-list-addnew-aligntop.ms-list-addnew {padding-bottom:0;} table#Hero-WPQ2 {display:none;} .ms-csrlistview-controldiv {padding-left:15px;}

  9. List item

  10. Insert another CEWP directly above the list

  11. In the CEWP, copy/paste the code for the button(s) you created in step 6

  12. Copy/paste the code for the Upload button, from step 2

enter image description here

  • **** Ignore step 9 **** – Stupid Clown Jul 12 '17 at 16:04

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.