open vlookup link in new tab with different view?

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


This topic contains 1 reply, has 2 voices, and was last updated by  Alexander Bautz 1 year, 5 months ago.

  • Author
  • #14501

    Jeff Lynch

    I am using a discussion list as the vLookup for Products. When a client clicks the edit or view button they get the OOTB list view. When you go to the discussion board and open it, there is a different page called /flat.aspx that is opened and it displays a more traditional discussion format.

    Can we launch that view from in the vLookup?

  • #14543

    Alexander Bautz

    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”:


    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.


You must be logged in to reply to this topic.