SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Maybe someone know how add item name with link in EditForm, like it is in DispForm?

Image of what I need to do:

enter image description here

(if the image isn't visible:

share|improve this question
You're editing the file's metadata. Why would you want the file name to be a link in this situation? What would be the purpose? What would be the benefit? – teylyn Mar 14 '13 at 10:00

I normally hate "Why" answers, but here goes: WHY? The Edit Form is for modifying the properties of a list item, or a library item (document). The Display Form is for showing (read-only) the properties of a list/library item. If a user is looking at the item properties in read mode, they can click the link and get the document. If the user is in edit mode, they are changing the properties of the item. It would be counter-intuitive to expect to open the document while you are editing the properties. Why is the link from the display form insufficient?

I am sincerely curious as to the reason for this requirement.

share|improve this answer
+1 +2 +3!! The link to open the document is not relevant when editing the document properties. Step back and think about it, folks! You're just editing the file's metadata. Why would you even WANT a link to open that same file? What is the business process? An XSLT List View Web Part will show the "Name" as the column with the ECB (Edit Control Block), but that can be changed easily with SharePoint Desingner. The point is: that change happens in the List View Web Part, and NOT in the properties of the uploaded file. SharePoint 101. – teylyn Mar 14 '13 at 9:57

The Title field is single line text field and it does not allow HTML. Even if you try to add, SharePoint will display it as-is (html encoded). It cannot be done.

share|improve this answer
So maybe here is some workaround how add ItemName to editForm which will have link directly to document? – Eugenijus Feb 29 '12 at 19:38
The question is about displaying the file name, not about making the title a hyperlink. – Christophe Feb 29 '12 at 22:20

Two things come to mind, neither of which is ideal or pleasant

  • Inject Javascript into your master page via some mechanism (Custom master page, delegate, whatever) that detects the edit page and injects HTML into the page to make a linkable title field
  • a custom field control but those are definitely not for the timid and require a fair amount of work to get working properly
share|improve this answer

I see a link in the field of DispForm

enter image description here

only when this field is lookup field to another one.
And when that another one has more than one value then in EditForm I see a drop down list

enter image description here

and if it has only one value there then it is like on you screenshot.

Meanwhile I do not see any sense in having a link in EditForm... it is just a rendering feature, generated dynamically through XSLT transformation by Sharepoint server, not the content.

You can observe it Title URL textbox under Advanced section in Web Part Properties of DispForm

enter image description here

but copy-pasting the same link manually into corresponding textbox of webpart properties of EditForm will not change the existing rendering of lookup field in EditForm

share|improve this answer

In SharePoint designer open the form Edit.aspx form and Display.aspx forms.

From Display.aspx copy the textfield(Variable name) id, I mean to say the way it is getting displayed and paste inside the edit.aspx form text box of the respective field.

For example: in Disp.aspx find "Name" field and the value in next , copy that variable and paste it in editform.

I have implemented the same thing in past and it was worked with this kind of trick.

Hope this helps.

share|improve this answer

The reason for having the hyperlink or even the text equivalent is this: working with SPOnline we have a library that exceeds the list item threshold, therefore we are limited in what we can do out of the box. Users on upload get to the editform.aspx page which does not have the document link. They are then supposed to copy the document link and paste into another system. With exceeding the list threshold we were forced to use search query web part. SP online search can take some time before they see the refreshed search results with the new document they just uploaded which does have the link

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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