Add attachment to template

How can we add a clip to add an attachment in this code?

{% 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 %}

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 %}

This gives me this result:

What am I doing wrong?

{% 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 %}

Hello @Fiduciaire.Eulaers,

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

The answer is this however :

{% input financieringeenmans.bijlage as:file %} 

My mistake. And apologies again for the delay :confused: