Conditional formatting breaks custom layouts

%3CLINGO-SUB%20id%3D%22lingo-sub-2167793%22%20slang%3D%22en-US%22%3EConditional%20formatting%20breaks%20custom%20layouts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2167793%22%20slang%3D%22en-US%22%3E%3CP%3EI%20raised%20a%20Support%20ticket%20with%20Microsoft%20for%20this%20but%20was%20told%20to%20post%20here%20instead...%3CBR%20%2F%3E%5BCase%20%23%3A24222483%5D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20used%20the%20standard%20layout%20formatting%26nbsp%3Bto%20add%20sections%20to%20the%20BODY%20of%20the%20data%20entry%20form%20for%20a%20SharePoint%20list.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fdeclarative-customization%2Flist-form-configuration%23configure-custom-body-with-one-or-more-sections%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EBODY%20formatting%20-%20reference%20link%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20then%20when%20I%20configure%20a%20field%20to%20be%20hidden%20based%20on%20another%20field's%20value%2C%20the%20BODY%20formatting%20I%20just%20added%20stops%20working.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fdeclarative-customization%2Flist-form-conditional-show-hide%23get-started-with-conditional-formulas%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EConditional%20formulas%20for%20hiding%20fields%20-%20reference%20link%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOn%20close%20inspection%20it%20seems%20that%20the%20JSON%20string%20is%20truncated%20and%20is%20therefore%20invalid.%20That's%20why%20the%20BODY%20formatting%20stops%20working.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhy%20does%20the%20formatting%20JSON%20for%20forms%20of%20lists%20and%20libraries%20get%20truncated%20when%20configuring%20column%20display%20settings%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20a%20modern%20team%20site%20that%20is%20not%20connected%20to%20an%20Office%20365%20Group%20and%20there%20are%20no%20customisations%20loaded.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I raised a Support ticket with Microsoft for this but was told to post here instead...
[Case #:24222483]

 

I have used the standard layout formatting to add sections to the BODY of the data entry form for a SharePoint list.

BODY formatting - reference link

 

But then when I configure a field to be hidden based on another field's value, the BODY formatting I just added stops working.

Conditional formulas for hiding fields - reference link

 

On close inspection it seems that the JSON string is truncated and is therefore invalid. That's why the BODY formatting stops working.

 

Why does the formatting JSON for forms of lists and libraries get truncated when configuring column display settings?

 

This is a modern team site that is not connected to an Office 365 Group and there are no customisations loaded.

 

2 Replies

Hi @Peter_Vincent

 

Hope you are having a good day. 

 

I try replicating your scenario but I was not getting the same problem. What I can suggest is that you take another go at reconfiguring the display settings to see what happens. 

 

Kind regards,

@Deanodelpleash I have recreated the issue and attached a recording of it.

 

I'm happy to jump on a call with you to demonstrate this in person if need be, as I mentioned to the support staff in the ticket i rasied in the Office 365 admin centre