Cross-site Lookup with multiple values
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?
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?
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
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
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
-
- Information
-
Who is online
Users browsing this forum: No registered users and 14 guests