Related Items

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
JFred
Posts: 8
Joined: Sat Sep 14, 2013

11 Dec 2014

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

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

12 Dec 2014

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.

JFred
Posts: 8
Joined: Sat Sep 14, 2013

12 Dec 2014

Worked Perfectly. Thanks Dmitry.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests