<{{Subtitle_Weight}} class="prominent-subhead {{Show_Subtitle}}"> {{Header_Subtitle}}

List Count Operator does not return the number of items selected on a list control

This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.


The List Count Operator returns '0' as the count when there are multiple items selected on a list control.


When using 'List Count' operator on an expression to get the count of the selected items on a list control (i.e. multi-select control), the count will always return 0.


List Aggregators including the 'List Count' Operator only work with List views. The List Count cannot be used to count the number of items selected on a list control.

We have a feature request submitted on ideas.k2.com to add the ability to use the List Count operator on list controls as well. Please vote for the following idea to increase the likelihood of this feature being added to a future update: