Hide vLookup Add New Item link

Forums Classic DFFS Hide vLookup Add New Item link

Viewing 2 reply threads
  • Author
    Posts
    • #12971
      Andrew Wolfe
      Participant

      I have a parent/child list rendering child items on the parent display form with DFFS and vLookup. Based on the parent item’s status I’d like to hide the Add New link but still display the related items.

      I’ve tried $(“#newItemWrap_vLookupItems”).hide().css(“visibility”, “hidden”); and variations of this but that still displays, can you help me please?

    • #12984
      Alexander Bautz
      Keymaster

      Hi,
      This control will have a delayed load so you have to wrap the code in the “vLookupIsLoadedCallback” function like described here: https://spjsblog.com/vlookup-for-sharepoint/vlookup-user-manual/#vLookupIsLoadedCallback

      also, the code should be like this:

      $("#newItemWrap_vLookupItems").remove();

      Let me know how this works out.

      Alexander

    • #13078
      Andrew Wolfe
      Participant

      That solution has worked perfectly. Thanks for the pointer to the section in the manual.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.