Page 1 of 1

Related Items

Posted: 11 Dec 2014
by JFred
We are using SP365 on line. Two Questions:

1. On a related item view, is it possible to move the "+Add New Item" link from the bottom of the Related Items view to the top of the view? No change in functionality, just location. The Related Items view is sorted by Date, descending, showing the newest item at the top. The user has to scroll all the way down to the bottom of the list view to add a new item.

2. The form has multiple tabs with different related items on each. Can I perform the above request on selected tabs?

Thanks in advance.

JFred

Re: Related Items

Posted: 12 Dec 2014
by Dmitry Kozlov
Hi,

Please, assign a CSS class to a particular Related items control in Forms Designer e.g. 'related-items'. Next, put the following code into JS-editor:

Code: Select all

$('.related-items .ms-addnew').closest('table').after($('.related-items table:eq(0)'));
The code above switches table with related items and the New item link for the particular Related items control.

Re: Related Items

Posted: 12 Dec 2014
by JFred
Worked Perfectly. Thanks Dmitry.