SOLVED

How To Hide a field in modern sharepoint list "edit form"?

%3CLINGO-SUB%20id%3D%22lingo-sub-377446%22%20slang%3D%22en-US%22%3EHow%20To%20Hide%20a%20field%20in%20modern%20sharepoint%20list%20%22edit%20form%22%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-377446%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Everyone%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20like%20to%20hide%20multiple%20fields%20in%20a%20modern%20SharePoint%20edit%20form%20(and%20currently%20I%20don't%20want%20to%20use%20PowerApps%20customizations)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ehttps%3A%2F%2F*tenantname*.sharepoint.com%2Fsites%2F*sitename*%2FLists%2F*listname*%2FNewForm.aspx%3C%2FP%3E%3CP%3ENotes%20and%20another%20technical%20fields%20should%20be%20hidden%20for%20a%20basic%20user.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20any%20option%20to%20create%20multiple%20%22form%20views%22%20for%20a%20form%2C%20which%20differ%20in%20fields%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%20I%20would%20like%20to%20hide%20some%20options%20in%20a%20multiple%20select%20list%2C%20%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%20class%3D%22%22%3Ewhich%20cannot%20be%20not%20selected%20in%20the%20edit%20form.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%20class%3D%22%22%3EStatus%3A%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%20class%3D%22%22%3EDraft%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%20class%3D%22%22%3EPending%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%20class%3D%22%22%3EChecked%20-%20This%20option%20should%20%22unable%20to%20be%20selected%22%20on%20the%20form%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%20class%3D%22%22%3ECompleted%20-%20This%20option%20should%20%22unable%20to%20be%20selected%22%20on%20the%20form%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-377446%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ELists%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Emodern%20list%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-377830%22%20slang%3D%22en-US%22%3ERe%3A%20How%20To%20Hide%20a%20field%20in%20modern%20sharepoint%20list%20%22edit%20form%22%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-377830%22%20slang%3D%22en-US%22%3EAgree%20here%20with%20the%20comments%20already%20posted%3A%3CBR%20%2F%3E-%20Use%20different%20content%20types%20in%20your%20lists%3CBR%20%2F%3E-%20User%20PowerApps%3CBR%20%2F%3EAdditional%20to%20this%20two%20options%2C%20you%20have%20the%20possibility%20to%20make%20custom%20dev%20using%20SPFx%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-377774%22%20slang%3D%22en-US%22%3ERe%3A%20How%20To%20Hide%20a%20field%20in%20modern%20sharepoint%20list%20%22edit%20form%22%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-377774%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F304090%22%20target%3D%22_blank%22%3E%40tibork%3C%2FA%3E%26nbsp%3BYou%20can%20hide%20fields%20on%20selected%20forms%20through%20PowerShell.%20I've%20done%20it%20once%20and%20it%20seemed%20to%20work%20well.%20Here's%20a%20document%20that%20shows%20some%20sample%20code%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fsocial.technet.microsoft.com%2FForums%2Flync%2Fen-US%2Fea664c9a-7bbb-4c18-846a-8b6a6989f14d%2Fhide-column-in-newform-editform-using-powershell%3Fforum%3Dsharepointadmin%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsocial.technet.microsoft.com%2FForums%2Flync%2Fen-US%2Fea664c9a-7bbb-4c18-846a-8b6a6989f14d%2Fhide-column-in-newform-editform-using-powershell%3Fforum%3Dsharepointadmin%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEach%20field%20has%20a%26nbsp%3B%3CSPAN%3E.ShowInEditForm%20and%20.ShowInNewForm%20and%20.ShowInViewForm%20property%20that%20you%20can%20get%20to.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-377612%22%20slang%3D%22en-US%22%3ERe%3A%20How%20To%20Hide%20a%20field%20in%20modern%20sharepoint%20list%20%22edit%20form%22%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-377612%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F304090%22%20target%3D%22_blank%22%3E%40tibork%3C%2FA%3E%26nbsp%3BHave%20you%20tried%20managing%20your%20content%20types%3F%20If%20content%20type%20management%20is%20on%2C%20then%20you%20can%20use%20that%20as%20a%20way%20to%20hide%20certain%20fields%20from%20the%20New%20Item%20form%20(I%20do%20that%20all%20the%20time%20to%20make%20Title%20go%20away).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%26nbsp%3B%3CEM%3Emight%3C%2FEM%3E%20be%20able%20to%20create%20different%20input%20forms%20per%20content%20type%20if%20you%20need%20different%20input%20forms%20for%20different%20people%2C%20but%20I%20don't%20think%20there's%20any%20way%20to%20restrict%20users%20from%20one%20content%20type%20or%20another.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-377491%22%20slang%3D%22en-US%22%3ERe%3A%20How%20To%20Hide%20a%20field%20in%20modern%20sharepoint%20list%20%22edit%20form%22%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-377491%22%20slang%3D%22en-US%22%3EMy%20understanding%20is%20that%20PowerApps%20customisation%20is%20the%20only%20out%20the%20box%20way.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-977907%22%20slang%3D%22en-US%22%3ERe%3A%20How%20To%20Hide%20a%20field%20in%20modern%20sharepoint%20list%20%22edit%20form%22%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-977907%22%20slang%3D%22en-US%22%3EHi%20Robin%2C%3CBR%20%2F%3E%3CBR%20%2F%3Ethis%20method%20breaks%20with%20the%20modern%20UI%2C%20after%20setting%20one%20of%20these%20properties%20to%20true%2C%20the%20modern%20Edit%2Fnew%20form%20won%C2%B4t%20open%20anymore...%20clicking%20on%20new%20will%20open%20the%20classic%20new%20form%20instead.%3C%2FLINGO-BODY%3E
New Contributor

Hello Everyone,

 

I would like to hide multiple fields in a modern SharePoint edit form (and currently I don't want to use PowerApps customizations)

 

https://*tenantname*.sharepoint.com/sites/*sitename*/Lists/*listname*/NewForm.aspx

Notes and another technical fields should be hidden for a basic user.

 

Is there any option to create multiple "form views" for a form, which differ in fields?

 

Also I would like to hide some options in a multiple select list, which cannot be not selected in the edit form.

Status:

Draft

Pending

Checked - This option should "unable to be selected" on the form

Completed - This option should "unable to be selected" on the form

 

 

5 Replies
Best Response confirmed by tibork (New Contributor)
Solution
My understanding is that PowerApps customisation is the only out the box way.

@tibork Have you tried managing your content types? If content type management is on, then you can use that as a way to hide certain fields from the New Item form (I do that all the time to make Title go away).

 

You might be able to create different input forms per content type if you need different input forms for different people, but I don't think there's any way to restrict users from one content type or another.

@tibork You can hide fields on selected forms through PowerShell. I've done it once and it seemed to work well. Here's a document that shows some sample code https://social.technet.microsoft.com/Forums/lync/en-US/ea664c9a-7bbb-4c18-846a-8b6a6989f14d/hide-col... 

 

Each field has a .ShowInEditForm and .ShowInNewForm and .ShowInViewForm property that you can get to.

Agree here with the comments already posted:
- Use different content types in your lists
- User PowerApps
Additional to this two options, you have the possibility to make custom dev using SPFx
Hi Robin,

this method breaks with the modern UI, after setting one of these properties to true, the modern Edit/new form won´t open anymore... clicking on new will open the classic new form instead.