Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
Windows
What browser(s) / client(s) have you tested
Additional environment details
- browser version: Version 147.0.3912.72 (Offizielles Build) (64-Bit)
- SPFx version: 1.22.2 - Heft
- Node.js version: 22.22.0
Describe the bug / error
When updating a Field Customizer field definition in elements.xml and setting:
ReadOnlyEnforced="TRUE"
ShowInDisplayForm="FALSE"
ShowInEditForm="FALSE"
ShowInNewForm="FALSE"
those settings are not applied after deployment. The field renders normally in the list, but it is still editable and still shown in views/forms, even though it should be read-only and hidden.
Steps to reproduce
- Create a new SPFx project
- Updating field definition in elements.xml and set the props
- Upload to App Catalog and deploy
- Add field to List View
- Test the field
Expected behavior
- Field is enforced read-only (ReadOnlyEnforced="TRUE") (User can not update the field)
- Field is not displayed in: Display form, Edit form, New form
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
Windows
What browser(s) / client(s) have you tested
Additional environment details
Describe the bug / error
When updating a Field Customizer field definition in elements.xml and setting:
those settings are not applied after deployment. The field renders normally in the list, but it is still editable and still shown in views/forms, even though it should be read-only and hidden.
Steps to reproduce
Expected behavior