I have several multi-select fields I use to filter a repeating group, and I want to display text that tells someone how many of the fields are currently in use (i.e., you’re filtering on X factors).
I started with the max number of filters since this seemed the simplest to me. I tried to set it up so that it changes the text that shows (from “All filters” to “All filters (5)”) and makes the text weight heavier. Neither of these things are happening with my current setup, which looks like this:
Well, the first question is if you just want to indicate how many types of filters are being used, regardless of the number of items selected in each filter.
If that’s the case, in the text itself you can do something like:
All filters (Multidropdown A value: first item is not empty: formatted as number + Multidropdown B value: first item is not empty: formatted as number)
Each validated multidropdown (not empty) will be validated as 1. Therefore, the sum will result in the number of dropdowns that have selected options.
On the other hand, if the idea is to display the sum of all filters from all Multidropdowns, you can use a similar approach, directly on the text element as well, but in that case you don’t need to do the numeric validation, just the count:
All filters (Multidropdown A value: count + Multidropdown B value: count)
This is fantastic, and solves most of my problem! (I wanted the first scenario you described, indicated how many fields are currently in use).
The one outlier here is a “filter” that I actually have set up as a custom checkox (i.e., the regular checkbox formatting is ugly so I replicate the functionality with hiding/showing a customized icon).