SharePoint Online: Hide “Content Type” Field from List Forms
Requirement: Remove the “Content Type” Field from SharePoint Online List Forms.
How to hide “Content Type” Dropdown from SharePoint Online List Forms?
When you enable content types for a SharePoint Online list, you’ll see “Content Type” as a field in SharePoint list forms such as New and Edit. Sometimes, this could be annoying, and you may want to remove the content type field from the edit form.
I tried setting the “ContentType” field property to hidden, and tried turning off the “ShowInNewForm” and “ShowInEditForm” flags to “FALSE” as per my other script, but none of them helped.
Option 1: Customize the List Form with PowerApps
Just edit the New or Edit forms in PowerApps and publish! This will remove the “Content Type” field from the forms.!
Option 2: Disable Content Types in the List
The simplest solution to hide the “content type” field is to switch off the management of content types once you are done with your content type customization. Here is how you can hide “Content Type” field from the New form or Edit form by turning off the management of content types:
- Navigate to the specific list >> Click on “Settings” >> List Setting >> Advanced Setting
- Choose “Allow Management of content Type to “No”
However, This will remove any additional content types you added to the list! (but preserves all customization you have made by turning ON content types. E.g., If you have set a field to “Hidden” in the default content type, that won’t be lost!).
In classic list forms, we are not facing this issue (you can use jQuery/PowerShell methods to hide any field on the new form or edit form in SharePoint Online). To hide a content type from the “New” drop-down in SharePoint lists, use: How to Hide a Content Type from New Button Drop-down in SharePoint?
To remove a specific content type from the SharePoint Online list, use: SharePoint Online: Remove Content Type from List
Never mind. Your instructions worked as I understood them. Thank you!
Salaudeen: Could you please explain what you mean by “Just edit the New or Edit forms in PowerApps and publish!”? Step by step instructions would help. As I try to do what you describe, I:
1) Open the SharePoint list that hosts the form and data.
2) Click Integrate–>Power Apps–>Customize Forms.
3) Make a simple edit on either the New or Edit form.
4) Publish the Form.
When I returned to SharePoint, clicked new, the form hadn’t changed and the content type was still listed at the top.
Obviously, I’m doing something wrong. Can you provide a more explicit, step-by-step description? Thank you.
Thanks for the post Salaudeen. A very typical requirement that we have is to show the content type choices on the New menu, but to not show the content type dropdown on the form. Sadly, it looks like this is not an option.
Perfect!
Just tried this out and it worked great, but then I wasn’t able to change the content type via Flow. When I turned “manage content types” back on, then I could change it in Flow. So for my application, PowerApps is the superior solution (that I don’t currently have access to).
I have the exact same issue, I want to hide the content type field in the form but when doing that via the list advance setting, then the flow (that changes the content type) fails with the error
‘The passed-in field “{ContentType}” could not be found’
Did you mange to find a work-around for this ‘bug’?