pnp / sp-dev-fx-controls-react

Reusable React controls for SPFx solutions
https://pnp.github.io/sp-dev-fx-controls-react/
MIT License
380 stars 379 forks source link

DynamicForm - Not showing the name field #1683

Open hdmal opened 8 months ago

hdmal commented 8 months ago

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.

image

Observed Behavior

In a Document Library, DynamicForm opens without the "Name" field.

Configuration: image

Output: image

Steps to Reproduce

Create an SPFx project with DynamicForm control. Open DynamicForm to edit a file properties.

Can you please help on this?

Thanks!

ghost commented 8 months ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

michaelmaillot commented 8 months ago

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?