sp-dev-fx-controls-react icon indicating copy to clipboard operation
sp-dev-fx-controls-react copied to clipboard

[Dynamic Form] Cannot read properties of undefined (reading 'sections')

Open wuxiaojun514 opened this issue 11 months ago • 3 comments

Category

[ ] Enhancement

[x] Bug

[ ] Question

Version

Please specify what version of the library you are using: [ 3.17 ]

Observed Behavior

It will show "Cannot read properties of undefined (reading 'sections')" error when you use [Dynamic Form] on a list which has empty ClientFormCustomFormatter image

Steps to Reproduce

  1. Prepare a test list and click "Config Layout" image
  2. Paste some view formatting json code ,then remove it (Sometimes you want to try "Custom Formatting" first before using Dynamic Form, so you may have empty ClientFormCustomFormatter) image
  3. Using Dynamic Form Control on this list, then you will get "Cannot read properties of undefined (reading 'sections')" error

My Temp Solution

I cannot remove ClientFormCustomFormatter in the UI. I used PnP Powershell to remove this property image

wuxiaojun514 avatar Mar 06 '24 03:03 wuxiaojun514

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Mar 06 '24 03:03 ghost

I am experiencing the same issue. image

When I configure layout sections, the number of controls in each section varies. Is there a way to define number of columns or define control widths (e.g. 25%, 33%, 50%)?

When there is one section, controls are unusable - too small

{
    "sections": [
        {
            "displayname": "",
            "fields": []
        }
    ]
}

image

Ruslan-Urban avatar Mar 20 '24 21:03 Ruslan-Urban

Same Issue.

Haiqi-Wu avatar Jul 26 '24 07:07 Haiqi-Wu