display a link to a lookup field on an edit form Home › Forums › SPJS-Lookup › display a link to a lookup field on an edit form This topic has 1 reply, 2 voices, and was last updated 7 years, 11 months ago by Alexander Bautz. Viewing 1 reply thread Author Posts December 14, 2016 at 03:40 #14506 Jeff LynchParticipant I have a Acknowledgement list, it links a user with a document from a separate list and asks them to edit the form and click the “I agree” button. I’d like the edit form to have the hyperlink to the document in it, is this possible? December 15, 2016 at 18:50 #14547 Alexander BautzKeymaster Add the field “FileDirRef” to the ViewFields section in vLookup, and add this to the “Special configuration”: {"function":"buildLinkToDocument"} Then add this to the Custom JS: function buildLinkToDocument(a,b){ return "<a href='"+b.get_item("FileDirRef")+"/"+b.get_item("FileLeafRef")+"' target='_blank'>Link</a>"; } See attached images for details. Alexander Attachments:vLookup_linkToDocument1.pngvLookup_linkToDocument2.png Author Posts Viewing 1 reply thread You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In