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

DynamicForm - Not showing the name field

Open hdmal opened this issue 2 years ago • 2 comments

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!

hdmal avatar Oct 19 '23 02:10 hdmal

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

ghost avatar Oct 19 '23 02:10 ghost

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?

michaelmaillot avatar Nov 05 '23 09:11 michaelmaillot