sp-dev-fx-controls-react
sp-dev-fx-controls-react copied to clipboard
[Dynamic Form] Cannot read properties of undefined (reading 'sections')
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
Steps to Reproduce
- Prepare a test list and click "Config Layout"
- 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)
- 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
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
I am experiencing the same issue.
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": []
}
]
}
Same Issue.