Home › Forums › SPJS-Lookup › display a link to a lookup field on an edit form › Reply To: display a link to a lookup field on an edit form
December 15, 2016 at 18:50
#14547
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