Disable Related Items from Javascript

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
dstgroup
Posts: 5
Joined: Wed Mar 04, 2015

19 Mar 2015

Is it possible to disable a related items control from javascript? I need to disable from the client end.

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

23 Mar 2015

Please, specify what exactly you want to disable: all links including lookups, context menu, 'add new item' link, drag-n-drop?

dstgroup
Posts: 5
Joined: Wed Mar 04, 2015

23 Mar 2015

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.

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

24 Mar 2015

Hi,

You can hide the 'Add new document' link by using the following code:

Code: Select all

$('.ms-addnew, .ms-list-addnew').hide();

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests