Collection: Creating and using within 'automatic hiding'

Hi,

To benefit from the ‘automatic hiding’ feature on templates, I have created a period reconciliation in which users of our environment can select which months a VAT return falls due for a client (and subsequently will ‘show’ the VAT reconciliations when needed).

Is there a way for me to store which months a user has ticked within a collection, which can then be called in ‘formula for automatic hiding’?

Here is the code I am currently using:
{% assign array_months = "January|February|March|April|May|June|July|August|September|October|November|December" | split:"|"%}
{% stripnewlines %}
|-49%-|-49%-|-1%-|-1%-+#
{% newline %}
|{% t "Select months where a VAT return is due" %}
{% for month in array_months %}
{% if forloop.first %}
|{% input custom.[month].boolean as:boolean %} {{month}}
||
{% else %}
{% newline %}
|
|{% input custom.[month].boolean as:boolean %} {{month}}
||
{% endif %}
{% endfor %}
{% newline %}{% newline %}
{% endstripnewlines %}

Many thanks
Joe

Edit: Also - a related question - is it possible to utilise ‘formula for automatic hiding’ within Silverfin reconciliation templates?