Hello there @jhanley,
you can actually:
{% input custom.check.show as:boolean %}
{% if custom.check.show == true %}
{% assign sf_show_inputs = false %}
{% endif %}
{% input custom.some.thing as:text %}
{% if custom.attachements.things.document != blank %}
{% assign sf_show_inputs = true %}
{% endif %}
{% input custom.attachements.things as:file_collection %}
So we’ll assign the sf_show_inputs to false when there’s a certain check marked. Nothing special there.
Later in our code, we’ll do this:
{% if custom.attachements.things.document != blank %}
{% assign sf_show_inputs = true %}
{% endif %}
What this does, is check the database variable custom.attachements.things and see if it has something of one or more documents in it (that’s what the attribute .document is for!)
More info here:
When there are attachments added, we will assign that variable sf_show_inputs back to true again so you can see the added files: