You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I'm rendering a form on a library with content types, and some fields are hidden at list content type level, those fields should not show up in the rendered dynamic form.
Observed Behavior
Fields that are hidden at content type level currently show up in the rendered form, I now have to work around that manually by adding these fields to the hiddenFields option, which is a shame, because I need to add quite some custom code to make that work.
Steps to Reproduce
Create a list content type with a couple of hidden fields, and render a DynamicForm, using the content type id:
Category
[ ] Enhancement
[x] Bug
[ ] Question
Version 3.18.1
Expected / Desired Behavior / Question
If I'm rendering a form on a library with content types, and some fields are hidden at list content type level, those fields should not show up in the rendered dynamic form.
Observed Behavior
Fields that are hidden at content type level currently show up in the rendered form, I now have to work around that manually by adding these fields to the
hiddenFields
option, which is a shame, because I need to add quite some custom code to make that work.Steps to Reproduce
Create a list content type with a couple of hidden fields, and render a DynamicForm, using the content type id:
The solution should probably be implemented in the following location. It would be easy to filter out fields based on
field.Hidden
.sp-dev-fx-controls-react/src/controls/dynamicForm/DynamicForm.tsx
Line 1268 in bf61b7a
The text was updated successfully, but these errors were encountered: