Page 1 of 1
Disable Related Items from Javascript
Posted: 19 Mar 2015
by dstgroup
Is it possible to disable a related items control from javascript? I need to disable from the client end.
Re: Disable Related Items from Javascript
Posted: 23 Mar 2015
by Dmitry Kozlov
Please, specify what exactly you want to disable: all links including lookups, context menu, 'add new item' link, drag-n-drop?
Re: Disable Related Items from Javascript
Posted: 23 Mar 2015
by dstgroup
I was mostly looking to disable the add new and upload links. Anything that could allow to add or delete a document. really. At least from the initial form. I have not issue if it is done by "following" a link.
Re: Disable Related Items from Javascript
Posted: 24 Mar 2015
by Dmitry Kozlov
Hi,
You can hide the 'Add new document' link by using the following code:
Code: Select all
$('.ms-addnew, .ms-list-addnew').hide();