Concatenated input with part of a field name

Question:
I have a collection with boolean field names 2022 Active, 2023 Active, 2024 Active. Is it possible to input a year into an input element and then concatenate it with Active in the field name from the collection fieldname in order to filter to active is true. My assumption at this point is not possible and I will need to go back and use tags to filter active in my collection.

Product:
Wix Studio

You gave the answer yourself. You can concatenate a fieldname treating them as strings, concatenating them with +. In code, of course. Not too sure if this will work with blanks inside a field name, I’m from an era when this was regarded as a mortal sin, so I never tried it.