Retrieve number of elements in repeater



Hi all,

I’m using a repeater to display a table of content. Above, I use filter buttons to filter out only rows with specific properties. However, I’m struggling to display the number of elements matching each rule next to the filter buttons.

What I’ve tried is setting up global variables for the different properties and incrementing them in the load function of the repeater, which works for the first load, but then keeps incrementing each time the table gets sorted/filtered.

Any help is appreciated! Thanks.


There’s a built in function to return the number of displayed items in a repeater - look for visibleItemCount in the function builder.