Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top