Related Items: Edit only

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
armin o
Posts: 21
Joined: Sun Jan 17, 2016

13 Apr 2018

Hi there,

i need to get rid of the "+ new item" link on top of the related items control, so that only "edit" is available.

$("#idHomePageNewItem").hide(' ');

or .html(''); does the trick, but after related-items-control refreshes, the '+ new item' link is there again, so i tried

Sys.WebForms.PageRequestManager.getInstance().add_endRequest( () => {
$("#idHomePageNewItem").hide();
console.log("hiding again...")
});

but that is not working, probably because it's in client rendering.....

now what?
Thanks,
Armin

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

13 Apr 2018

Dear Armin,
Try to add the following code to the CSS Editor in Forms Designer:

Code: Select all

#idHomePageNewItem {
    display: none;
}
Cheers

armin o
Posts: 21
Joined: Sun Jan 17, 2016

17 Apr 2018

excellent, that worked

Thank you!

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests