# SF\_show\_inputs vs 'empty' bold table input cells

**URL:** <https://community.silverfin.com/t/sf-show-inputs-vs-empty-bold-table-input-cells/1221>\
**Category:** Templates\
**Tags:** input, control\_flow, if, styling\
**Created:** [September 27, 2018, 8:04am UTC](https://community.silverfin.com/t/sf-show-inputs-vs-empty-bold-table-input-cells/1221 "2018-09-27T08:04:31Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)\
**Post date:** [October 1, 2018, 12:37pm UTC](https://community.silverfin.com/t/sf-show-inputs-vs-empty-bold-table-input-cells/1221/9 "2018-10-01T12:37:09Z")

</div>

Hello there @jhanley,

you can actually:

```auto
{% 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:

```auto
{% 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:

> [@CASE: check if an attachment (or attachments) are added](https://community.silverfin.com/t/case-check-if-an-attachment-or-attachments-are-added/1225):
>
> If you want to check whether or not documents (attachments) have been added to a database variable, you can by using the document method: {% if custom.attachements.things.document == blank %} {% ic %} {::infotext as="hover"} {% t "Please add the missing invoices as PDF" %} {:/infotext} {% endic %} {% endif %} {% input custom.attachements.things as:file\_collection %} Output: [56]

When there are attachments added, we will assign that variable _ **sf\_show\_inputs** _ back to true again so you can see the added files:  
 ![58](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/1X/f359b6f6e9c00628e9d179b12ce247b22f6de9a1.png)

---

_[View the full topic](https://community.silverfin.com/t/sf-show-inputs-vs-empty-bold-table-input-cells/1221)._
