Reply To: 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 Reply To: display a link to a lookup field on an edit form

#14547
Alexander Bautz
Keymaster

    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