SOLVED

Field property "ShowInEditForm" does not work in modern mode

%3CLINGO-SUB%20id%3D%22lingo-sub-238519%22%20slang%3D%22en-US%22%3EField%20property%20%22ShowInEditForm%22%20does%20not%20work%20in%20modern%20mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-238519%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20a%20scenario%20where%20we%20need%20to%20hide%20several%20fields%20from%20Edit%20form%20in%20SharePoint%20list.%20I%20set%20a%20field%20property%20%22ShowInEditForm%22%20to%20false%20via%20PowerShell%26nbsp%3B%20but%20we've%20noticed%20that%20field%20got%20hidden%20not%20only%20in%20Edit%20form%20but%20also%20in%20Display%20form.%20This%20behavior%20occurs%20in%20modern%20experience%20mode%20-%20in%20classic%20mode%20it%20works%20as%20expected%20(field%20is%20hidden%20only%20in%20Edit%20form).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EShould%20this%20be%20considered%20a%20modern%20experience%20bug%20or%20this%20is%20expected%20behavior%20and%20we%20should%20use%20PowerApps%20to%20hide%20fields%20instead%20of%20setting%20properties%20ShowInNewForm%2FShowInEditForm%2FShowInDisplayForm%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMicrosoft%20support%20reproduced%20this%20problem%2C%20but%20we%20still%20didn't%20get%20an%20answer%20if%20this%20is%20going%20to%20be%20fixed%20in%20the%20future%20or%20it%20is%20expected%20behavior.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-265631%22%20slang%3D%22en-US%22%3ERe%3A%20Field%20property%20%22ShowInEditForm%22%20does%20not%20work%20in%20modern%20mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-265631%22%20slang%3D%22en-US%22%3E%3CP%3EFinally%20received%20a%20reply%20from%20Microsoft%20-%20this%20is%20expected%20behavior%20in%20modern%20experience%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3E%22Thank%20you%20for%20contacting%20Microsoft%20regarding%20your%20request%20of%20%E2%80%9CShowInEditForm%20not%20working%20properly%20in%20Modern%20UI%26nbsp%3B%20Field%20is%20hidden%20in%20Display%20form%20as%20well%E2%80%9D.%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3EWe%20have%20conducted%20a%20thorough%20investigation%20into%20this%20matter%20and%20determined%20that%20under%20the%20current%20configuration%2C%20the%20product%20behaves%20as%20expected.%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3EThe%20reason%20for%20the%20behavior%20is%20that%20in%20Modern%20UI%20the%20display%20form%20is%20at%20the%20same%20time%20an%20Edit%20Form%20(%20it%20allows%20for%20inline%20edits)%2C%20therefore%20the%20product%20correctly%20hides%20the%20field%20that%20should%20not%20be%20edited.%20We%20are%20looking%20into%20options%20of%20improving%20the%20user%20experience%20in%20this%20area%20but%20we%20cannot%20commit%20to%20a%20specific%20timeframe%20nor%20can%20we%20communicate%20any%20specific%20implementation%20details%20at%20this%20point.%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3EFor%20each%20request%2C%20we%20strive%20to%20find%20the%20best%20possible%20solution%20for%20our%20customers%20while%20maintaining%20or%20improving%20the%20quality%20of%20our%20product%20and%20ensuring%20continued%20integrity%20of%20the%20product%20code%20base.%20We%20thank%20you%20for%20bringing%20this%20issue%20to%20our%20attention%20and%20continuing%20to%20work%20with%20us%20on%20improving%20our%20products%20for%20customers%20worldwide.%22%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-252812%22%20slang%3D%22en-US%22%3ERe%3A%20Field%20property%20%22ShowInEditForm%22%20does%20not%20work%20in%20modern%20mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-252812%22%20slang%3D%22en-US%22%3E%3CP%3EMicrosoft%20keeps%20me%20updating%20that%20PG%20team%20is%20still%20investigating%20(premier%20support%20ticket%20is%20open%20for%202%20months%20already).%3C%2FP%3E%3CP%3ENow%20I'm%20using%20PowerApps%20to%20customize%20lists%20forms%20to%20be%20able%20to%20show%20fields%20in%20Display%20form%20and%20hide%20from%20Edit%20from.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-252760%22%20slang%3D%22en-US%22%3ERe%3A%20Field%20property%20%22ShowInEditForm%22%20does%20not%20work%20in%20modern%20mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-252760%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20also%20having%20the%20same%20issue%2C%20I%20need%20to%20add%20a%20field%20with%20the%20following%20setup%3A%3C%2FP%3E%3CP%3EShowInNewForm%3D%22FALSE%22%3C%2FP%3E%3CP%3EShowInEditForm%3D%22FALSE%22%3C%2FP%3E%3CP%3EShowInDisplayForm%3D%22TRUE%22%26nbsp%3B%3C%2FP%3E%3CP%3EShowInViewForms%3D%22TRUE%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20on%20modern%20UI%20it%20does%20not%20show%20at%20all!%20The%20only%20way%20that%20the%20users%20can%20see%20the%20info%20is%20on%20a%20view%2C%20and%20they%20can%20actually%20change%20(which%20we%20dont%20want)%20by%20going%20to%20quick%20edit...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20we%20make%20it%20ReadOnly%20is%20going%20to%20be%20worse%2C%20because%20we%20get%20the%20same%20%22not%20displaying%22%20situation%20but%26nbsp%3Balso%20we%20are%20not%20able%20to%20update%20the%20field%20(even%20internally)...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHave%20MS%20updated%20you%20on%20this%20issue%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-471622%22%20slang%3D%22en-US%22%3ERe%3A%20Field%20property%20%22ShowInEditForm%22%20does%20not%20work%20in%20modern%20mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-471622%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F76131%22%20target%3D%22_blank%22%3E%40Jovita%20Elzbutait%C4%97%3C%2FA%3Eno%20matter%20what%20MS%20says%2C%20it%20does%20NOT%20behave%20as%20expected.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewhile%20having%20this%20settings%20on%20a%20field%20schema%3A%3C%2FP%3E%3CP%3E%3CFONT%3EShowInEditForm%3D%22FALSE%22%20ShowInNewForm%3D%22FALSE%22%20ShowInDisplayForm%3D%22TRUE%22%3C%2FFONT%3E%3C%2FP%3E%3CP%3EI%20expect%2C%20when%20surfing%20to%20this%20form%20where%20the%20field%20is%20configured%3C%2FP%3E%3CP%3E%22%3CFONT%3E%2FForms%2FDispForm.aspx%3FID%3D1%22%20(a%20page%20which%20is%20also%20modernized%2C%20except%20it%20is%20not%20exposed%20in%20the%20UI%20anymore%20sadly!)%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%3Eto%20actually%20show%20the%20field%20in%20question%2C%20at%20present%20it%20does%20not.%20So%20it%20is%20a%20bug...%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%3EPlease%20fix!%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-565819%22%20slang%3D%22en-US%22%3ERe%3A%20Field%20property%20%22ShowInEditForm%22%20does%20not%20work%20in%20modern%20mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-565819%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F76131%22%20target%3D%22_blank%22%3E%40Jovita%20Elzbutait%C4%97%3C%2FA%3E%26nbsp%3BI%20am%20also%20facing%20this%20issue.%20For%20me%2C%20we%20would%20like%20to%20hide%20fields%20in%20a%20Document%20library%20where%20Microsoft%20is%20yet%20to%20enable%20PowerApps%20as%20forms%20customization%20option.%20%3A(%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1154442%22%20slang%3D%22en-US%22%3ERe%3A%20Field%20property%20%22ShowInEditForm%22%20does%20not%20work%20in%20modern%20mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1154442%22%20slang%3D%22en-US%22%3EWow!%20MS%20blames%20technical%20difficulties%20of%20Modern%20UI%20development%20for%20not%20supporting%20basic%20SharePoint%20functionality!%20This%20is%20shameful%20display%20of%20ignorance%20of%20those%20Modern%20UI%20developers.%20Either%20take%20away%20support%20for%20the%20ShowInEditForm%20and%20ShowInDisplayForm%20properties%2C%20or%20find%20a%20way%20to%20make%20it%20work%20in%20ootb%20SharePoint.%20Why%20do%20we%20need%20to%20create%20PowerApps%20forms%20for%20every%20list%20just%20because%20they%20can't%20find%20a%20way%20to%20hide%20a%20field%20on%20a%20form%3F%20Some%20fields%20just%20should%20not%20be%20edited%20and%20a%20lot%20of%20logic%20went%20into%20developing%20such%20lists.%3CBR%20%2F%3EMicrosoft%2C%20please%20educate%20your%20developers%20on%20how%20SharePoint%20is%20supposed%20to%20wok%2C%20and%20don't%20make%20SharePoint%20not%20work%20properly%20because%20they%20can't%20code%20it.%3CBR%20%2F%3E((((%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hi All,

 

We have a scenario where we need to hide several fields from Edit form in SharePoint list. I set a field property "ShowInEditForm" to false via PowerShell  but we've noticed that field got hidden not only in Edit form but also in Display form. This behavior occurs in modern experience mode - in classic mode it works as expected (field is hidden only in Edit form).

 

Should this be considered a modern experience bug or this is expected behavior and we should use PowerApps to hide fields instead of setting properties ShowInNewForm/ShowInEditForm/ShowInDisplayForm?

 

 

Microsoft support reproduced this problem, but we still didn't get an answer if this is going to be fixed in the future or it is expected behavior.

6 Replies
Highlighted

I'm also having the same issue, I need to add a field with the following setup:

ShowInNewForm="FALSE"

ShowInEditForm="FALSE"

ShowInDisplayForm="TRUE" 

ShowInViewForms="TRUE"

 

But on modern UI it does not show at all! The only way that the users can see the info is on a view, and they can actually change (which we dont want) by going to quick edit...

 

If we make it ReadOnly is going to be worse, because we get the same "not displaying" situation but also we are not able to update the field (even internally)...

 

Have MS updated you on this issue?

Highlighted

Microsoft keeps me updating that PG team is still investigating (premier support ticket is open for 2 months already).

Now I'm using PowerApps to customize lists forms to be able to show fields in Display form and hide from Edit from.

 

 

 

Highlighted
Best Response confirmed by Jovita Elzbutaitė (New Contributor)
Solution

Finally received a reply from Microsoft - this is expected behavior in modern experience:

 

"Thank you for contacting Microsoft regarding your request of “ShowInEditForm not working properly in Modern UI  Field is hidden in Display form as well”.

We have conducted a thorough investigation into this matter and determined that under the current configuration, the product behaves as expected.

The reason for the behavior is that in Modern UI the display form is at the same time an Edit Form ( it allows for inline edits), therefore the product correctly hides the field that should not be edited. We are looking into options of improving the user experience in this area but we cannot commit to a specific timeframe nor can we communicate any specific implementation details at this point.

For each request, we strive to find the best possible solution for our customers while maintaining or improving the quality of our product and ensuring continued integrity of the product code base. We thank you for bringing this issue to our attention and continuing to work with us on improving our products for customers worldwide."

Highlighted

@Jovita Elzbutaitėno matter what MS says, it does NOT behave as expected.

 

while having this settings on a field schema:

ShowInEditForm="FALSE" ShowInNewForm="FALSE" ShowInDisplayForm="TRUE"

I expect, when surfing to this form where the field is configured

"/Forms/DispForm.aspx?ID=1" (a page which is also modernized, except it is not exposed in the UI anymore sadly!)

to actually show the field in question, at present it does not. So it is a bug...

 

Please fix!

Highlighted

@Jovita Elzbutaitė I am also facing this issue. For me, we would like to hide fields in a Document library where Microsoft is yet to enable PowerApps as forms customization option. :(

Highlighted
Wow! MS blames technical difficulties of Modern UI development for not supporting basic SharePoint functionality! This is shameful display of ignorance of those Modern UI developers. Either take away support for the ShowInEditForm and ShowInDisplayForm properties, or find a way to make it work in ootb SharePoint. Why do we need to create PowerApps forms for every list just because they can't find a way to hide a field on a form? Some fields just should not be edited and a lot of logic went into developing such lists.
Microsoft, please educate your developers on how SharePoint is supposed to wok, and don't make SharePoint not work properly because they can't code it.
((((