1

I created a custom EditForm for my document library and the field Name that containing the document name is not showing up. How to insert it in my form ?

This article is talking about a similar issue with the Created By field.

I also read solutions talking about "__designer:bind" and they are not working for me. I got the following error message:

...does not contains TestDeviceFilter definition and no extension method 'testDeviceFilter' with argument...

Finaly I searched for a column named Name inside my document library definition and I wasn't able to find it, (actually there are several columns named "Name" but they aren't relevant).

2
  • Can you try with Title of the document instead of Name ?
    – samolpp2
    Commented Dec 31, 2015 at 11:59
  • I'm not sure what you're asking. I tried with the title of the document and I got it. But what I want is the name of the document.
    – ameliapond
    Commented Dec 31, 2015 at 12:24

1 Answer 1

2

I added the following snippet:

<td class="ms-formbody">
  <SharePoint:FormField runat="server" ID="field_name" controlMode="Edit" FieldName="Name" />                                 
</td>

I don't know why but the FieldName attribute should be the exact displayed name (and NOT the internal name) of the column we want to display.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.