Related Item Values

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
Cloud.Ed
Posts: 40
Joined: Fri Dec 04, 2015

18 Aug 2016

How would I get the value of multiple related items in the related items control? If we wanted to get every value from cloumn 3 and concatinate them into a single string for instance? The related item contron is set to render in client, quick edit only.


Thank yoiu.

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

19 Aug 2016

Hi,

You can retrieve values from the related items control following way:

Code: Select all

var rows = fd.relatedItems(0).data('ctx').ListData.Row;
for (var i = 0; i < rows.length; i++) {
    alert(rows[i].Title);
}
Where 'Title' is the internal name of the required field.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests