Reply To: open vlookup link in new tab with different view?

Forums vLooup for SharePoint open vlookup link in new tab with different view? Reply To: open vlookup link in new tab with different view?

#14543
Alexander Bautz
Keymaster

Hi,
Sorry for the delay – I get a lot of questions and sometimes fall a bit behind. You should remove the “view” and “edit” buttons from vLookup and add a custom link like this:

Add the field “FileDirRef” to the ViewFields section in vLookup, and add this to the “Special configuration”:

{"function":"buildLinkToFlatView"}

Then add this to the Custom JS:

function buildLinkToFlatView(a,b){
    return "<a href='"+a+"/flat.aspx?RootFolder="+a+"/"+b.get_item("Title")+"' target='_blank'>Link</a>";
}

See attached images.

Let me know how this works out.

Alexander