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

Fix 1862

Open NishkalankBezawada opened this issue 1 year ago • 0 comments

Q A
Bug fix? [x]
New feature? [ ]
New sample? [ ]
Related issues? fixes #1862

What's in this Pull Request?

Fixing issue 1862 - Dynamic form should hide fields that are hidden on the List Content Type

Issue

When a form on a library with content types is rendered, and some fields are hidden at list content type level, those fields are still shown on the form. This is still on the latest release v3.19.0 as below,

image

Solution

A simple check as below,

      // Process fields that are not marked as hidden
      if (hiddenFields.indexOf(field.InternalName) < 0) {
        if(field.Hidden === false) { *** added new condition 
        *** other logic here***
        }

Making field.Hidden === false resolves the issue as below,

image

Guidance

@martinlingstuyl

Thanks, Nishkalank Bezawada

NishkalankBezawada avatar Aug 21 '24 18:08 NishkalankBezawada