Page 1 of 1

Cross-site Lookup with multiple values

Posted: 13 Mar 2014
by MES5464
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?

Re: Cross-site Lookup with multiple values

Posted: 14 Mar 2014
by Dmitry Kozlov
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