LookupMulti count selected total
Hi,
I am using a LookupMulti field, called customers, the left column has the available customers populated from a list,
Is there a way to count the number of customers that have been selected and moved into the right hand column on submit? have tried a few ways with no luck
Thanks
I am using a LookupMulti field, called customers, the left column has the available customers populated from a list,
Is there a way to count the number of customers that have been selected and moved into the right hand column on submit? have tried a few ways with no luck
Thanks
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi,
The following code returns the number of selected items:
Replace 'FieldName' with the internal name of the lookup field.
The following code returns the number of selected items:
Code: Select all
fd.field('FieldName').control()._el().find('select:eq(1) option').length
-
- Information
-
Who is online
Users browsing this forum: No registered users and 5 guests