Cross-site Lookup with multiple values

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
MES5464
Posts: 94
Joined: Mon Aug 26, 2013

13 Mar 2014

So I have looked at getting the values from a cross-site lookup with multiple values.

First item:

fd.field('CrossSiteLookup').control('data')[0]['Title']

Second item:

fd.field('CrossSiteLookup').control('data')[1]['Title']


So, how do you know how many values are in the field so you can get all of them?

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

14 Mar 2014

Hello,

The following method returns a simple array of the selected items:

fd.field('CrossSiteLookup').control('data').

So, you can get its size by using length property:

fd.field('CrossSiteLookup').control('data').length

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 14 guests