# Add attachment to template

**URL:** <https://community.silverfin.com/t/add-attachment-to-template/227>\
**Category:** Templates\
**Tags:** input, as\_attribute\
**Created:** [April 27, 2017, 7:17am UTC](https://community.silverfin.com/t/add-attachment-to-template/227 "2017-04-27T07:17:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fiduciaire.Eulaers](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/fiduciaire.eulaers/32/31_2.png) [@Fiduciaire.Eulaers](https://community.silverfin.com/u/Fiduciaire.Eulaers)\
**Post date:** [April 27, 2017, 7:17am UTC](https://community.silverfin.com/t/add-attachment-to-template/227/1 "2017-04-27T07:17:44Z")

</div>

How can we add a clip to add an attachment in this code?  
 ![](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/1X/04ffb3e12d023acf27272c3947e9f89a0713fb33.png)

```auto
{% assign cost_groups = custom.financieringeenmans %}

_ **FINANCIERING** _

{% if custom.detail.goederen == blank %}{% assign goederen_range = '65'%}{% else %}{% assign goederen_range = custom.detail.goederen %}{% endif %}
{% assign goederen = period.accounts | range:goederen_range %}

|---------------------|-------10%-------:+ {% fori financieringeenmans in custom.financieringeenmans %}
|{% input financieringeenmans.naam %}|{% endfori %}

```

---

<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:** [April 27, 2017, 9:50am UTC](https://community.silverfin.com/t/add-attachment-to-template/227/2 "2017-04-27T09:50:35Z")

</div>

That’s a new variable you’ll have to create, and the way to do it is use this filter : `as:annex`

for instance: `{% input financieringeenmans.bijlage as:annex %}`

---

<div class="post-metadata">

**Author:** ![Fiduciaire.Eulaers](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/fiduciaire.eulaers/32/31_2.png) [@Fiduciaire.Eulaers](https://community.silverfin.com/u/Fiduciaire.Eulaers)\
**Post date:** [April 27, 2017, 10:07am UTC](https://community.silverfin.com/t/add-attachment-to-template/227/3 "2017-04-27T10:07:40Z")

</div>

This gives me this result:

 ![](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/1X/1e6d31ae1d034e9d1c9f417e8525c429a6596887.png)

What am I doing wrong?

```auto
{% assign cost_groups = custom.financieringeenmans %}

_ **FINANCIERING** _

{% if custom.detail.goederen == blank %}{% assign goederen_range = '65'%}{% else %}{% assign goederen_range = custom.detail.goederen %}{% endif %}
{% assign goederen = period.accounts | range:goederen_range %}

|---------------------|-------10%-------:+ {% fori financieringeenmans in custom.financieringeenmans %}
|{% input financieringeenmans.naam %}|{% input financieringeenmans.bijlage as:annex %}|{% endfori %}

```

---

<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 18, 2017, 6:36am UTC](https://community.silverfin.com/t/add-attachment-to-template/227/4 "2017-10-18T06:36:54Z")

</div>

Hello @Fiduciaire.Eulaers,

I see we forgot to answer this; so sorry 'bout that.

The answer is this however :

```auto
{% input financieringeenmans.bijlage as:file %} 

```

My mistake. And apologies again for the delay 😕
