# Document template not correctly exported

**URL:** <https://community.silverfin.com/t/document-template-not-correctly-exported/2403>\
**Category:** Exports\
**Tags:** export\
**Created:** [February 6, 2023, 10:14am UTC](https://community.silverfin.com/t/document-template-not-correctly-exported/2403 "2023-02-06T10:14:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dutrannoit](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@Dutrannoit](https://community.silverfin.com/u/Dutrannoit)\
**Post date:** [February 6, 2023, 10:14am UTC](https://community.silverfin.com/t/document-template-not-correctly-exported/2403/1 "2023-02-06T10:14:13Z")

</div>

Hello,

I created a new document template. Everything sounds correct when I look at it on the screen but when I export it I receive a different information in the export than selected on the screen.

You will find here the code:

```auto
<br>_Samenstelling van de algemene vergadering:_ zie aanwezigheidslijst

<br> **_Voorafgaandelijke uiteenzetting:_**
{% ic %}{% input period.custom.notulen_voorzitter.dropdown as:select options:"ENKEL VOORZITTER|MET SECRETARIS" | default:"ENKEL VOORZITTER" | assign:typeofmeeting %}{% endic %}
<br>I. {% if typeofmeeting != "ENKEL VOORZITTER"%}De vergadering wordt geopend om {{ voorbereiding_av_uur }}:{{ voorbereiding_av_minuten }} uur onder het voorzitterschap van {% input period.custom.voorzitter.naam as:select options:zaakvoerder_options assign:voorzitter %} die {% input period.custom.secretaris.naam as:select options:zaakvoerder_options assign:secretaris %} aanduidt als secretaris.{% else %}De vergadering wordt geopend om {{ voorbereiding_av_uur }}:{{ voorbereiding_av_minuten }} door {% input period.custom.voorzitter.naam as:select options:zaakvoerder_options assign:voorzitter %}. Gezien het aantal aanwezigen wordt er geen bureau samengesteld. {% endif %}

```

Any idea what’s happening?

Michael

---

<div class="post-metadata">

**Author:** ![Romy\_Vermeeren](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/romy_vermeeren/32/2295_2.png) [@Romy\_Vermeeren](https://community.silverfin.com/u/Romy_Vermeeren)\
**Post date:** [February 6, 2023, 10:51am UTC](https://community.silverfin.com/t/document-template-not-correctly-exported/2403/2 "2023-02-06T10:51:28Z")

</div>

Hi @Dutrannoit

welcome to our Community!  
The issue is this piece of code:

```auto
{% ic %}{% input period.custom.notulen_voorzitter.dropdown as:select options:"ENKEL VOORZITTER|MET SECRETARIS" | default:"ENKEL VOORZITTER" | assign:typeofmeeting %}{% endic %}

```

The [ic-tags](https://developer.silverfin.com/docs/comments#input-comment) make it so that line is not executed in export.  
Your local variable `typeofmeeting` therefore does not exist when you export the template.

You can solve this with a new assign statement outside of the ic-tags.  
That could look like this:

```auto
{% ic %}{% input period.custom.notulen_voorzitter.dropdown as:select options:"ENKEL VOORZITTER|MET SECRETARIS" | default:"ENKEL VOORZITTER" %}{% endic %}
{% assign typeofmeeting = period.custom.notulen_voorzitter.dropdown | default:"ENKEL VOORZITTER" %}

```

I hope that helps.  
Kind regards,  
Romy

---

<div class="post-metadata">

**Author:** ![Dutrannoit](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@Dutrannoit](https://community.silverfin.com/u/Dutrannoit)\
**Post date:** [February 6, 2023, 12:11pm UTC](https://community.silverfin.com/t/document-template-not-correctly-exported/2403/3 "2023-02-06T12:11:53Z")

</div>

Hi Romi,

It helps. Thank you!

Michael
