Hide vLookup Add New Item link
- This topic has 2 replies, 2 voices, and was last updated 10 years, 2 months ago by .
Viewing 2 reply threads
Viewing 2 reply threads
- You must be logged in to reply to this topic.
Home › Forums › Classic DFFS › Hide vLookup Add New Item link
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?
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
That solution has worked perfectly. Thanks for the pointer to the section in the manual.