sp-dev-fx-controls-react
sp-dev-fx-controls-react copied to clipboard
Fix 1862
| 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,
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,
Guidance
@martinlingstuyl
Thanks, Nishkalank Bezawada