Open hdmal opened 8 months ago
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Hi @hdmal,
The DynamicForm, by its design, is filtering list / library fields in order to display only the ones that can be "writable", I think that the initial query which gets all the fields could be updated to get the Name one (maybe something to update here.
Would you like to give a try on this one?
Category
[ ] Bug
Version
Please specify what version of the library you are using: 3.15.0
Expected / Desired Behavior / Question
We have been using DynamicForm control in one of the SharePoint add-ins. Control works fine, except it's not displaying the Name (FileLeafRef) field. Users are expecting to modify custom fields, along with the file name.
When a user is inside a Document Library, and try to edit item properties, DynamicForm control should open the form with the "Name(FileLeafRef)" field for users to edit.
SharePoint edit properties form has this feature.
Observed Behavior
In a Document Library, DynamicForm opens without the "Name" field.
Configuration:![image](https://github.com/pnp/sp-dev-fx-controls-react/assets/20450634/15a7d8f2-8ee3-4580-ae6a-09afd006b505)
Output:![image](https://github.com/pnp/sp-dev-fx-controls-react/assets/20450634/37864059-1047-4cfc-8f70-f740fe8af4cd)
Steps to Reproduce
Create an SPFx project with DynamicForm control. Open DynamicForm to edit a file properties.
Can you please help on this?
Thanks!