Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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: http://i.stack.imgur.com/CqxQU.jpg)

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
add comment

6 Answers

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
add comment

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
add comment

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
add comment

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
add comment

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
add comment

Your Answer

 
discard

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.