Page 1 of 1

Related Items: Edit only

Posted: 13 Apr 2018
by armin o
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

Re: Related Items: Edit only

Posted: 13 Apr 2018
by Nikita Kurguzov
Dear Armin,
Try to add the following code to the CSS Editor in Forms Designer:

Code: Select all

#idHomePageNewItem {
    display: none;
}

Re: Related Items: Edit only

Posted: 17 Apr 2018
by armin o
excellent, that worked

Thank you!